Rename build step #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- 'fix/ci-integration-test' | |
env: | |
METEOR_VERSION: 2.6.1 | |
jobs: | |
build: | |
name: Build and Install | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get Cache dependencies | |
uses: actions/cache@v3 | |
id: files-cache | |
with: | |
path: | | |
node_modules/ | |
dist/ | |
~/.npm/ | |
~/.meteor/ | |
/tmp/tests/.__tmp_int/ | |
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | |
- name: Install/Retrieve Meteor | |
if: steps.files-cache.outputs.cache-hit != 'true' | |
run: curl https://install.meteor.com/?release=${{ env.METEOR_VERSION }} | /bin/sh | |
- name: Install NPM Dependencies | |
# Creates dist/ through postinstall->build script | |
if: steps.files-cache.outputs.cache-hit != 'true' | |
run: meteor npm ci | |
- name: Run build script | |
# Make sure dist/ is up-to-date when package-lock.json hasn't changed | |
if: steps.files-cache.outputs.cache-hit == 'true' | |
run: meteor npm run build | |
test: | |
needs: build | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get Cache dependencies | |
uses: actions/cache@v3 | |
id: files-cache | |
with: | |
path: | | |
node_modules/ | |
dist/ | |
~/.npm/ | |
~/.meteor/ | |
/tmp/tests/.__tmp_int/ | |
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | |
- name: Unit Tests | |
run: ~/.meteor/meteor npm run test | |
- name: Unit Tests bis | |
run: meteor npm run test |