-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.46 KB
/
mariadb.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: ci
on:
push:
branches:
- main
paths:
- mariadb/**
- .github/workflows/mariadb.yml
jobs:
mariadb-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Uninstall default MySQL
if: matrix.os == 'ubuntu-latest'
run: |
sudo service mysql stop
sudo apt-get remove --purge mysql-server mysql-client mysql-common -y
sudo apt-get autoremove -y
sudo apt-get autoclean
sudo rm -rf /etc/mysql
sudo rm -rf /var/lib/mysql
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: rust
args: |
target_add wasm32-unknown-unknown
build --release --target wasm32-unknown-unknown
working-directory: mariadb
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Start MariaDB Server
run: |
fluentci run target/wasm32-unknown-unknown/release/mariadb.wasm start
fluentci run target/wasm32-unknown-unknown/release/mariadb.wasm stop
working-directory: mariadb
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NIX_CONFIG: extra-access-tokens = github.com=${{ secrets.GH_ACCESS_TOKEN }}
MARIADB_USER: demo
MARIADB_PASSWORD: demo
MARIADB_DATABASE: demo