Skip to content

Commit

Permalink
Trying another test of breaking up gopherjs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
grantnelson-wf committed Jul 11, 2024
1 parent 1dc22ae commit ac81336
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,12 @@ jobs:
<(sed 's/todomvc_gomod.js.map/todomvc_ignored.js.map/' /tmp/todomvc_gomod.js) \
<(sed 's/todomvc_gopath.js.map/todomvc_ignored.js.map/' /tmp/todomvc_gopath.js)
gopherjs_tests_noncrypto:
name: GopherJS Tests (non-crypto)
gopherjs_tests:
name: GopherJS Tests
runs-on: ubuntu-latest
strategy:
matrix:
filter: [ "^(?!crypto)", "^crypto"]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -191,28 +194,7 @@ jobs:
PACKAGE_NAMES=$( \
GOOS=js GOARCH=wasm go list std github.com/gopherjs/gopherjs/js/... github.com/gopherjs/gopherjs/tests/... \
| grep -v -x -f .std_test_pkg_exclusions \
| grep -v -e "^crypto" \
)
gopherjs test -p 2 --minify -v --short $PACKAGE_NAMES
gopherjs_tests_cypto:
name: GopherJS Tests (cypto)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: ${{ env.GOPHERJS_PATH }}
- name: Copy Actions
run: cp -r ${{ env.GOPHERJS_PATH }}/.github .
- name: Setup GopherJS
uses: ./.github/actions/setup-gopherjs/
- name: Run GopherJS tests
working-directory: ${{ env.GOPHERJS_PATH }}
run: |
PACKAGE_NAMES=$( \
GOOS=js GOARCH=wasm go list std github.com/gopherjs/gopherjs/js/... github.com/gopherjs/gopherjs/tests/... \
| grep -v -x -f .std_test_pkg_exclusions \
| grep -e "^crypto" \
| grep -Pe "${{matrix.filter}}" \
)
gopherjs test -p 2 --minify -v --short $PACKAGE_NAMES
Expand Down

0 comments on commit ac81336

Please sign in to comment.