Skip to content

Commit

Permalink
Merge pull request #59 from getlift/matrix-test
Browse files Browse the repository at this point in the history
Add matrix strategy
  • Loading branch information
mnapoli authored Jun 30, 2021
2 parents 1258e74 + fa2abf7 commit 17fd9fb
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 32,642 deletions.
45 changes: 34 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,33 @@ on:
pull_request:

jobs:
build:
name: Build
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 10
- 12
- 14
- 15
serverless:
- 2.36.0
- latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
- run: npm i
- run: npm i serverless@${{ matrix.serverless }}
- run: npm test
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -18,12 +43,10 @@ jobs:
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- name: Typescript checks
run: tsc --noEmit

tests:
name: Tests
- run: npm i
- run: npm run lint
type:
name: Type
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -34,6 +57,6 @@ jobs:
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm i
- name: Typescript checks
run: tsc --noEmit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
dist
node_modules
.serverless/
package-lock.json
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
engine-strict=true
package-lock=false
Loading

0 comments on commit 17fd9fb

Please sign in to comment.