Skip to content

fix: make postbuild script cross-platform using shx #29

fix: make postbuild script cross-platform using shx

fix: make postbuild script cross-platform using shx #29

Workflow file for this run

name: "Diff-Guardian"
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
jobs:
analyze:
name: API Contract Audit
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install Dependencies
run: npm ci
- name: Cache WASM Grammars
id: grammar-cache
uses: actions/cache@v4
with:
path: grammars/
key: wasm-grammars-${{ hashFiles('package-lock.json') }}
restore-keys: |
wasm-grammars-
- name: Build WASM Grammars
if: steps.grammar-cache.outputs.cache-hit != 'true'
run: npm run build:grammars
- name: Build
run: npm run build
- name: Run Diff-Guardian
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: npx dg