refactor: page component now includes loader & action like in remix, … #53
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: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint-and-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/[email protected] | |
- name: Setup biome | |
uses: biomejs/[email protected] | |
with: | |
version: latest | |
- name: Run biome | |
run: biome ci ./src | |
typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/[email protected] | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
- name: Install node | |
uses: actions/[email protected] | |
with: | |
node-version: lts/* | |
cache: pnpm # Package manager should be pre-installed | |
- name: Clean install | |
run: pnpm i --frozen-lockfile | |
- name: Typecheck | |
run: pnpm typecheck | |
# e2e: | |
# timeout-minutes: 30 | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout branch | |
# uses: actions/[email protected] | |
# - name: Install pnpm | |
# uses: pnpm/action-setup@v3 | |
# - name: Install node | |
# uses: actions/[email protected] | |
# with: | |
# node-version: 18 | |
# - name: Clean install | |
# run: pnpm i --frozen-lockfile | |
# - name: Install playwright browsers | |
# # since we are installing dependencies beforehand, we can `exec` the binaries directly, instead of `dlx` | |
# run: pnpm test:install | |
# - name: Run playwright tests | |
# run: pnpm test | |
# - name: Save playwright report as artifact | |
# uses: actions/[email protected] | |
# if: always() | |
# with: | |
# name: playwright-report | |
# path: playwright-report/ | |
# retention-days: 30 | |
# e2e: | |
# runs-on: ubuntu-latest | |
# container: | |
# image: mcr.microsoft.com/playwright:v1.42.0-focal | |
# steps: | |
# - name: Checkout branch | |
# uses: actions/[email protected] | |
# - name: Install pnpm | |
# uses: pnpm/action-setup@v3 | |
# - name: Install node | |
# uses: actions/[email protected] | |
# with: | |
# node-version: lts/* | |
# - name: Clean install | |
# run: pnpm i --frozen-lockfile | |
# - name: Run playwright tests | |
# run: pnpm test | |
# env: | |
# HOME: /root |