@setoelkahfi / svara / commits / 148cae3

Create main.yml

mellobacon committed Dec 1, 2022 at 02:10 UTC 148cae3f99b9a87e7e44b796a0ceae8901ddea86
1 file changed +31
.github/workflows/main.yml new
+31
@@ -0,0 +1,31 @@
1 +name: "test-on-pr"
2 +on: [pull_request]
3 +
4 +jobs:
5 + test-tauri:
6 + strategy:
7 + fail-fast: false
8 + matrix:
9 + platform: [macos-latest, ubuntu-20.04, windows-latest]
10 +
11 + runs-on: ${{ matrix.platform }}
12 + steps:
13 + - uses: actions/checkout@v2
14 + - name: setup node
15 + uses: actions/setup-node@v1
16 + with:
17 + node-version: '>=18.x'
18 + - name: install Rust stable
19 + uses: actions-rs/toolchain@v1
20 + with:
21 + toolchain: stable
22 + - name: install dependencies (ubuntu only)
23 + if: matrix.platform == 'ubuntu-20.04'
24 + run: |
25 + sudo apt-get update
26 + sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
27 + - name: install app dependencies and build it
28 + run: yarn && yarn build
29 + - uses: tauri-apps/tauri-action@v0
30 + env:
31 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}