Skip to content

Pin GitHub Actions to full-length commit SHAs #503

Pin GitHub Actions to full-length commit SHAs

Pin GitHub Actions to full-length commit SHAs #503

Workflow file for this run

name: Build and test
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
node-version: ['22']
name: ${{ matrix.platform }} / Node.js v${{ matrix.node-version }}
runs-on: ${{ matrix.platform }}
steps:
# - run: git config --global core.autocrlf false # Preserve line endings
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Setup Node.js v${{ matrix.node-version }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Build packages
run: npm run build
- if: matrix.platform == 'ubuntu-latest'
name: Build Docker images
run: npm run docker:build
- name: Lint packages
run: npm run lint
- name: Test packages
run: npm test
test_all:
if: always()
runs-on: ubuntu-latest
needs: test
steps:
- name: Check build matrix status
if: ${{ needs.test.result != 'success' }}
run: exit 1