feat: support xo #49
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: codegen | |
on: | |
push: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: full | |
jobs: | |
update-readme: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [20] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Generate stuff | |
run: cd codegen && cargo run | |
- name: Format stuff | |
run: npx prettier@latest --write schemas mdsf.json README.md && cargo run -- format README.md | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
add: schemas mdsf.json README.md | |
message: "chore: updated generated code" |