Skip to content

Commit

Permalink
chore: Run lint and test on push to any branch
Browse files Browse the repository at this point in the history
  • Loading branch information
inwaar committed May 10, 2023
1 parent 6306a85 commit b3a7ca8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: lint and test

on:
on:
push:
branches:
- 'dev/**'
pull_request:

jobs:
ci:
runs-on: ubuntu-latest
Expand All @@ -15,15 +13,15 @@ jobs:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Linters
run: npm run lint
- name: Tests
run: npm test
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Linters
run: npm run lint
- name: Tests
run: npm test
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: 'npm'
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Release
Expand Down

0 comments on commit b3a7ca8

Please sign in to comment.