-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): moves ci from travis to gh actions
- Loading branch information
Showing
5 changed files
with
82 additions
and
52 deletions.
There are no files selected for viewing
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,62 @@ | ||
name: linting & test coverage - linux | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
check: | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
node-version: | ||
- 14.x | ||
platform: | ||
- ubuntu-latest | ||
|
||
runs-on: ${{matrix.platform}} | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v1 | ||
- name: cache node modules for ${{matrix.node-version}}@${{matrix.platform}} | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: ${{matrix.node-version}}@${{matrix.platform}}-build-${{hashFiles('package.json')}} | ||
restore-keys: | | ||
${{matrix.node-version}}@${{matrix.platform}}-build- | ||
- name: set up node ${{matrix.node-version}}@${{matrix.platform}} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{matrix.node-version}} | ||
- name: install & build | ||
run: | | ||
node --version | ||
npm install | ||
npm run build | ||
shell: bash | ||
env: | ||
CI: true | ||
- name: lint & forbidden dependency check | ||
run: | | ||
node --version | ||
npm run lint | ||
npm run depcruise | ||
shell: bash | ||
env: | ||
CI: true | ||
- name: test coverage | ||
run: | | ||
node --version | ||
npm run test:cover | ||
shell: bash | ||
env: | ||
CI: true | ||
- name: report coverage to code climate | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_TEST_COVERAGE_ID }} |
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,17 @@ | ||
name: "Mark or close stale issues" | ||
on: | ||
schedule: | ||
- cron: "43 2 * * 2" | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
days-before-stale: 14 | ||
days-before-close: 3 | ||
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs." | ||
stale-issue-label: "stale" | ||
exempt-issue-labels: "bug,security,enhancement,good first issue,needs_fix_upstream,PR welcome,question" |
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