Skip to content

Commit

Permalink
chore(try-to-catch) add actions
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Mar 9, 2022
1 parent f222bbf commit de2579b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
workflow "Push" {
resolves = ["lint", "coverage"]
on = "push"
}

action "lint" {
uses = "gimenete/eslint-action@1.0"
}

action "coverage" {
uses = "coverallsapp/github-action@v1.0.1"
}
37 changes: 37 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Node CI
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
env:
NAME: try-to-catch

strategy:
matrix:
node-version:
- 16.x
- 17.x
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Redrun, Lerna
run: npm i redrun lerna -g
- name: Lint
run: redrun fix:lint
- name: Commit fixes
uses: EndBug/add-and-commit@v7
with:
message: chore(${{ env.NAME }}) lint using actions
- name: Coverage
run: redrun coverage:ci report
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: typos-action
uses: crate-ci/typos@v1.0.4

0 comments on commit de2579b

Please sign in to comment.