A command line tool to check your UpLeveled projects before you submit
pnpm add --global @upleveled/preflight
preflight
# Pull the image
docker pull ghcr.io/upleveled/preflight
# Run the image against a GitHub repo URL
docker run ghcr.io/upleveled/preflight https://github.com/upleveled/preflight-test-project-react-passing
# Or run the image against a specific branch in a GitHub repo URL
docker run ghcr.io/upleveled/preflight https://github.com/upleveled/preflight-test-project-react-passing fix-tests
To run Preflight on every commit in your repository, you can use the following GitHub Actions workflow:
.github/workflows/preflight.yml
name: Preflight
on: [push]
jobs:
preflight:
name: Preflight
runs-on: ubuntu-latest
steps:
- name: Pull latest Preflight image
run: docker pull ghcr.io/upleveled/preflight
- name: Run Preflight
run: docker run ghcr.io/upleveled/preflight https://github.com/${{ github.repository}} ${{ github.ref_name }}