g6/.github/workflows/build.yml

42 lines
910 B
YAML
Raw Normal View History

name: build
2023-08-24 14:42:04 +08:00
on: [push]
2023-08-24 10:17:57 +08:00
concurrency:
group: ${{github.workflow}}-${{github.event_name}}-${{github.ref}}
cancel-in-progress: true
jobs:
2023-08-24 15:11:28 +08:00
lint-and-build-g6:
2023-08-24 10:17:57 +08:00
runs-on: macos-latest
steps:
2023-08-24 15:11:28 +08:00
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
2023-08-24 19:09:11 +08:00
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Install Dependencies
2023-08-24 15:47:03 +08:00
run: pnpm install --no-frozen-lockfile
- name: Run CI
run: |
2023-08-24 10:17:57 +08:00
npm run ci
2023-08-24 14:37:11 +08:00
- name: Upload blob report to GitHub Actions Artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: snapshots
path: |
packages/g6/tests/integration/snapshots/**/*-actual.svg
retention-days: 1