Skip to content

Commit

Permalink
ci: split lint and tests for better reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
jankapunkt committed Jul 2, 2024
1 parent d080f2a commit 7c24139
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,43 @@ on:
pull_request:

jobs:
lint:
name: StandardJS lint
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache NPM dependencies
id: cache-meteor-npm
uses: actions/cache@v4
with:
path: ~/.npm
key: v3-npm-${{ hashFiles('package-lock.json') }}
restore-keys: |
v3-npm-
- name: Run lint
run: |
cd test-proxy
npm install
npm run setup
npm run test
tests:
name: Meteor tests
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

# CACHING
- name: Install Meteor
id: cache-meteor-install
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.meteor
key: v3-meteor-${{ hashFiles('.meteor/versions') }}
Expand Down Expand Up @@ -52,10 +78,9 @@ jobs:
with:
meteor-release: '2.8.1'

- name: Run lint and tests
- name: Run tests
run: |
cd test-proxy
meteor npm install
meteor npm run setup
meteor npm run lint
meteor npm run test

0 comments on commit 7c24139

Please sign in to comment.