Skip to content

Commit

Permalink
Separate test into second job
Browse files Browse the repository at this point in the history
  • Loading branch information
AnHeuermann committed Mar 13, 2024
1 parent a7e6d8a commit 5bace83
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
- name: Translate grammar to JSON
run: npm run prebuild

- name: Archive tmGrammar files
uses: actions/upload-artifact@v4
with:
name: tmGrammar.json
path: syntaxes/*.tmGrammar.json

- name: Run Test
run: npm run test

Expand All @@ -41,6 +47,29 @@ jobs:
name: metamodelica.vsix
path: metamodelica-*.vsix

test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup npm
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install

- name: Download tmGrammar files
uses: actions/download-artifact@v4
with:
name: tmGrammar.json

- name: Run Test
run: npm run test

release:
if: startsWith(github.ref, 'refs/tags/')
needs: build
Expand Down

0 comments on commit 5bace83

Please sign in to comment.