Skip to content

Commit

Permalink
ci: update workflows (#238)
Browse files Browse the repository at this point in the history
* ci: update workflows

* chore: rename file

* chore: change to underscore

* ci: add a package lock file

* ci: chakce to version 1 lockfile

* chore: correct lint warnings
  • Loading branch information
samchungy authored Dec 6, 2021
1 parent 2bfb9d0 commit 8a1dcc0
Show file tree
Hide file tree
Showing 8 changed files with 10,444 additions and 67 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: pull

on:
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm install
- run: npm test
- run: npm run build --if-present
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm install
- run: npm test
- run: npm run build --if-present
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ node_modules
.serverless
dist
*.log
package-lock.json
yarn.lock
Loading

0 comments on commit 8a1dcc0

Please sign in to comment.