diff --git a/.github/workflows/test-on-pr.yml b/.github/workflows/test-on-pr.yml index 3aff42a44..640fbda20 100644 --- a/.github/workflows/test-on-pr.yml +++ b/.github/workflows/test-on-pr.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - platform: [macos-latest, windows-latest] + platform: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v1 @@ -19,26 +19,8 @@ jobs: uses: actions-rs/toolchain@v1 with: toolchain: stable - - name: build - run: | - cd ./tauri - cargo build - env: - TAURI_DIST_DIR: ../../test/fixture/dist - TAURI_CONFIG_DIR: ../test/fixture/ - - build-tauri-ubuntu-latest: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 3 - - name: install stable - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - name: install webkit2gtk + - name: install webkit2gtk (ubuntu only) + if: matrix.platform == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y webkit2gtk-4.0 @@ -48,7 +30,7 @@ jobs: cargo build env: TAURI_DIST_DIR: ../../test/fixture/dist - TAURI_CONFIG_DIR: ../test/fixture + TAURI_CONFIG_DIR: ../test/fixture/ build-tauri-cli: runs-on: ${{ matrix.platform }} @@ -88,4 +70,4 @@ jobs: run: | cd ./cli/tauri.js yarn - yarn test \ No newline at end of file + yarn test