action: query the Go proxy for latest CUE version #28
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 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Use CUE | |
uses: ./ | |
with: | |
version: v0.4.3 | |
- 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) |