Skip to content

Commit

Permalink
chore(CI): update test job
Browse files Browse the repository at this point in the history
  • Loading branch information
Seven Du committed Mar 7, 2023
1 parent 41adccb commit 4f25d44
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
test:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -14,4 +19,12 @@ jobs:
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- run: npm ci
- run: dart test
- name: Pick test directory
id: pick
run: |
if [ "${{ matrix.os }}" = "windows-latest" ]; then
echo "directory=test_windows" >> $GITHUB_OUTPUT
else
echo "directory=test" >> $GITHUB_OUTPUT
fi
- run: dart test ${{ steps.pick.outputs.directory }}
17 changes: 0 additions & 17 deletions .github/workflows/test_windows.yaml

This file was deleted.

0 comments on commit 4f25d44

Please sign in to comment.