-
Notifications
You must be signed in to change notification settings - Fork 9
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 #59 from nodelib/TRIVIAL_github_actions
TRIVIAL: introduce GitHub Actions
- Loading branch information
Showing
5 changed files
with
52 additions
and
81 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
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,51 @@ | ||
name: CI | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
cancel: | ||
name: Cancel previous jobs | ||
if: github.ref != 'refs/heads/master' | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 3 | ||
steps: | ||
- name: Cancel previous jobs | ||
uses: styfle/cancel-workflow-action@0.6.0 | ||
with: | ||
workflow_id: 4524681 | ||
access_token: ${{ github.token }} | ||
|
||
test: | ||
name: Node.js ${{ matrix.node_version }} on ${{ matrix.os }} | ||
needs: | ||
- cancel | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node_version: [8, 10, 12, 14, 15] | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
steps: | ||
- name: Setup repository | ||
uses: actions/checkout@v2 | ||
- name: Setup environment | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
- name: Install root dependencies | ||
run: npm install | ||
- name: Link package dependencies | ||
run: npx lerna bootstrap | ||
- name: Compile sources | ||
run: npm run compile | ||
- name: Run hygiene checks | ||
run: npm run lint | ||
- name: Run dependencies checks | ||
run: npm run lint:dependencies | ||
- name: Run unit tests | ||
run: npm run test |
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.vsts | ||
tsconfig.json | ||
tsconfig.tsbuildinfo | ||
.eslintrc.json | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.