all: bump to use and support node20 #43
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
# Generated by cue cmd genworkflows; do not edit | |
name: build and test | |
"on": | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Use CUE | |
uses: ./ | |
with: | |
version: v0.6.0 | |
- name: Check CUE version | |
run: cue version | |
- name: Run tests | |
run: | | |
npm install | |
npm run test | |
- name: Build | |
run: npm run dist | |
- name: Re-vendor GitHub schemas | |
run: cue cmd vendorgithubschema | |
- name: Re-gen GitHub Action schema | |
run: cue cmd genaction | |
- name: Re-gen GitHub Actions workflows | |
run: cue cmd genworkflows | |
- name: Check commit clean | |
run: test -z "$(git status --porcelain)" || (git status; git diff; false) |