Skip to content

Commit

Permalink
Create Github action tmp-fix-integration-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dd137 committed Oct 12, 2023
1 parent 0168be4 commit beeef2f
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/tmp-fix-integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
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: Install NPM Dependencies
# 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

0 comments on commit beeef2f

Please sign in to comment.