This repository was archived by the owner on Apr 21, 2024. It is now read-only.
Merge pull request #20 from Coder-Spirit/castarco-patch-1 #40
This file contains hidden or 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
name: Node.js CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ main ] | |
defaults: | |
run: | |
working-directory: ./lambda-ioc | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x, '16.4.0', 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 }} | |
- run: if [ "$(node --version)" \< "v17" ]; then npm install -g yarn; fi | |
- run: yarn install | |
- run: yarn test | |
- run: yarn lint |