649 migrate from bun to pnpm #2042
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, feat-reports-page] | |
pull_request: | |
branches: '**' | |
jobs: | |
build: | |
name: 'Build 🧱' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@master | |
- name: Setup 👨🏻💻 | |
uses: ./.github/actions/setup | |
- name: Build Application 🧱 | |
run: pnpm run build | |
env: | |
NEXT_PUBLIC_API_URL: https://api.example.com | |
AUTH_SPOTIFY_ID: secret | |
AUTH_SPOTIFY_SECRET: secret | |
NEXTAUTH_URL: https://example.com | |
AUTH_SECRET: secret | |
NEXT_PUBLIC_USER_ID: secret | |
lint: | |
name: 'Lint 🐱' | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@master | |
- name: Setup 👨🏻💻 | |
uses: ./.github/actions/setup | |
- name: Lint JS files 🐱 | |
run: pnpm run lint:js | |
- name: Lint CSS files 🐱 | |
run: pnpm run lint:css | |
test: | |
name: 'Test 🧪' | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@master | |
- name: Setup 👨🏻💻 | |
uses: ./.github/actions/setup | |
- name: Run unit tests 🧪 | |
run: pnpm run test:coverage | |
- name: Collect coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |