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.
Merge pull request #21 from harryadel/CI-update
Add Github Workflow
- Loading branch information
Showing
7 changed files
with
2,360 additions
and
1,908 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,69 @@ | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Build and Install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
id: files-cache | ||
with: | ||
path: | | ||
node_modules | ||
dist/ | ||
~/.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=2.6 | /bin/sh | ||
- name: Install NPM Dependencies | ||
if: steps.files-cache.outputs.cache-hit != 'true' | ||
run: meteor npm ci | ||
|
||
test: | ||
needs: build | ||
name: Unit Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Get Cache dependencies | ||
uses: actions/cache@v3 | ||
id: files-cache | ||
with: | ||
path: | | ||
node_modules | ||
dist/ | ||
~/.meteor | ||
/tmp/tests/.__tmp_int | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
- name: Unit Tests | ||
run: ~/.meteor/meteor npm run test | ||
|
||
test-integration: | ||
needs: build | ||
name: Integration Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Get Cache dependencies | ||
uses: actions/cache@v3 | ||
id: files-cache | ||
with: | ||
path: | | ||
node_modules | ||
dist/ | ||
~/.meteor | ||
/tmp/tests/.__tmp_int | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
- run: ~/.meteor/meteor npm run prepare-integration-tests | ||
- run: ~/.meteor/meteor npm run test-integration |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.