Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
chore(project): move to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kylef committed Sep 17, 2020
1 parent b4a81b1 commit 3e9d79e
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 66 deletions.
64 changes: 0 additions & 64 deletions .circleci/config.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on: push
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2-beta
with:
node-version: 12
- run: yarn install --frozen-lockfile --ignore-optional
- run: yarn run lint
- run: yarn run commitlint --from origin/master
42 changes: 42 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
push:
paths-ignore:
- 'docs/**'
- 'README.md'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [8, 10, 12]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node }}
- run: yarn install --frozen-lockfile --ignore-optional
- run: yarn test:cover
- run: |
mkdir coverage
yarn run nyc report --reporter=text-lcov > coverage/lcov.info
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: node-${{ matrix.node }}
parallel: true

smoke-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn install --frozen-lockfile --ignore-optional
- run: ./scripts/smoke.sh

coverage:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"lint": "lerna exec --concurrency 1 --no-bail -- npm run lint",
"lint:fix": "lerna exec --concurrency 1 --no-bail -- npm run lint:fix",
"test": "lerna exec --concurrency 1 --no-bail -- npm run test",
"cover": "nyc npm test",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
"test:cover": "nyc npm test"
},
"devDependencies": {
"@commitlint/cli": "8.3.5",
Expand Down
File renamed without changes.

0 comments on commit 3e9d79e

Please sign in to comment.