Use ubuntu-22.04 in GH workflows runner images #1535
Workflow file for this run
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: PR Build | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-22.04 | |
- windows-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
cache: 'npm' | |
check-latest: true | |
- run: npm ci | |
- run: npm run build | |
env: | |
GH_API_KEY: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload site as actions artifact | |
if: ${{ runner.os == 'Linux' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: site | |
path: public |