forked from wojtkowiak/meteor-desktop
-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Github action tmp-fix-integration-test.yml
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
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
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 |