Skip to content

Commit

Permalink
Merge pull request #59 from nodelib/TRIVIAL_github_actions
Browse files Browse the repository at this point in the history
TRIVIAL: introduce GitHub Actions
  • Loading branch information
mrmlnc committed Dec 26, 2020
2 parents 9fa73b1 + f561eeb commit 977cb0e
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{.travis.yml,circle.yml,appveyor.yml,.vsts/**}]
[{.travis.yml,circle.yml,appveyor.yml,.github/**}]
indent_style = space
indent_size = 2

Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
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
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.editorconfig
.gitattributes
.gitignore
.vsts
tsconfig.json
tsconfig.tsbuildinfo
.eslintrc.json
Expand Down
28 changes: 0 additions & 28 deletions .vsts/build-steps.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .vsts/build.yml

This file was deleted.

0 comments on commit 977cb0e

Please sign in to comment.