Merge pull request #669 from alleyinteractive/changeset-release/main #1508
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: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
node-tests: | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [16, 18, 20] | |
name: "Build and Test: Node ${{ matrix.node }}" | |
runs-on: ubuntu-latest | |
# To use Remote Caching, uncomment the next lines and follow the steps below. | |
# env: | |
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
# TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
# TURBO_REMOTE_ONLY: true | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Cache turbo build setup | |
uses: actions/cache@v4 | |
with: | |
path: .turbo | |
key: ${{ runner.os }}-${{ matrix.node }}-turbo-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.node }}-turbo- | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Test | |
run: npm run test | |
- name: Lint | |
run: npm run lint |