chore: Pretty POC #18
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: ci | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
unified: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: corepack enable | |
- name: Install deps | |
run: yarn --immutable | |
- name: Lint | |
run: yarn run lint | |
- name: Build | |
run: yarn build | |
- name: "Unit Tests" | |
run: 'yarn run test:unit' | |
- name: "Integrations Tests" | |
run: 'yarn run test:integrations' | |
- name: Publish to Cloudflare Pages | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: 2238a825c5aca59233eab1f221f7aefb | |
projectName: gopher-poc | |
directory: ./web/.svelte-kit/cloudflare | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.head_ref || github.ref_name }} |