Skip to content

Apply in-range dependency updates #3283

Apply in-range dependency updates

Apply in-range dependency updates #3283

Workflow file for this run

name: Node.js CI
on:
push:
branches:
- '*'
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: textbook/take-action@nodejs
id: nodejs
with:
node-version-file: '.nvmrc'
env:
CYPRESS_INSTALL_BINARY: 0
- run: npm run lint
- run: npm run test
env:
FORCE_COLOR: true
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
with:
build-args: |
NODE_RELEASE=${{ steps.nodejs.outputs.node-version }}
context: .
push: false
tags: textbook/starter-kit
windows:
runs-on: windows-2022
steps:
- uses: textbook/take-action@nodejs
with:
node-version-file: '.nvmrc'
- run: npm run lint
- run: npm run test
env:
FORCE_COLOR: true
- run: npm run e2e
- run: npm run e2e:dev
e2e:
runs-on: ubuntu-22.04
needs: build
strategy:
matrix:
node: [ '18.12', '18', '20' ]
steps:
- uses: textbook/take-action@nodejs
with:
node-version: ${{ matrix.node }}
- run: npm run e2e
- run: npm run e2e:dev
deploy:
uses: './.github/workflows/deploy.yml'
if: github.ref == 'refs/heads/main'
needs:
- e2e
- windows
with:
environment: heroku
secrets:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }}