chore: update deps (2024-04-01) #461
This file contains 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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
serverless: ['1', '2', '3'] | |
node: [ '14', '15', '16', '18', '19', '20', '21' ] | |
name: CI (Node v${{ matrix.node }}, serverless@${{ matrix.serverless }}) | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
always-auth: true | |
node-version: ${{ matrix.node }} | |
registry-url: https://registry.npmjs.org | |
- run: npm ci | |
- run: npm test | |
- name: Integration Tests | |
run: | | |
npm ci | |
# Some versions of npm install peer dependencies | |
npm i serverless@${{ matrix.serverless }} | |
npx serverless --version | |
npx serverless package --stage production | |
# Must match value of `TEST_VAR` in `.env.production` | |
cat .serverless/cloudformation-template-update-stack.json | grep cf5bb467-9052-4a34-b318-f6df31644229 | |
working-directory: examples/simple-express-app | |
- name: publish | |
# Only publish (maybe) for one version of Node, and only on 'master' | |
if: ${{ matrix.node == 14 && matrix.serverless == '3' && github.ref == 'refs/heads/master' }} | |
run: npm run deploy | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | |
- name: Coveralls | |
# Only send coverage details for one version of Node | |
if: ${{ matrix.node == 14 }} | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |