Skip to content

CI

CI #333

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request: {}
schedule:
- cron: "0 3 * * *" # daily, at 3am
jobs:
gravity:
name: "Gravity"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: install @gravityci/cli
run: npm i -g @gravityci/cli
- name: Build
uses: shalzz/[email protected]
env:
BUILD_ONLY: true
- name: Run Gravity
run: gravityci "public/**/!(*.pdf|*.mp4|*.webm)"
env:
GRAVITY_TOKEN: ${{ secrets.GRAVITY_TOKEN }}