mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Ensure builds happen early enough in CI
This commit is contained in:
parent
99e4ae4f90
commit
28c36e5141
1 changed files with 15 additions and 17 deletions
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
|
|
@ -100,16 +100,13 @@ jobs:
|
|||
path: |
|
||||
packages/ani-cursor/dist
|
||||
packages/winamp-eqf/built
|
||||
packages/webamp/built/*.js
|
||||
packages/webamp/built/*.mjs
|
||||
packages/webamp/built/*.map
|
||||
packages/webamp/built/*.html
|
||||
packages/webamp/built
|
||||
key: library-artifacts-${{ github.sha }}
|
||||
|
||||
# Lint job - runs in parallel
|
||||
# Lint job - depends on build-library for type declarations
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
needs: setup
|
||||
needs: [setup, build-library]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install pnpm
|
||||
|
|
@ -123,20 +120,24 @@ jobs:
|
|||
cache: "pnpm"
|
||||
- name: Install Dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
- name: Build Dependencies
|
||||
run: |
|
||||
# Build ani-cursor and winamp-eqf first so their types are available
|
||||
pnpm --filter ani-cursor build
|
||||
pnpm --filter winamp-eqf build
|
||||
- name: Restore library artifacts
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
packages/ani-cursor/dist
|
||||
packages/winamp-eqf/built
|
||||
packages/webamp/built
|
||||
key: library-artifacts-${{ github.sha }}
|
||||
fail-on-cache-miss: true
|
||||
- name: Lint
|
||||
run: |
|
||||
pnpm lint
|
||||
pnpm type-check
|
||||
|
||||
# Test job - runs in parallel
|
||||
# Test job - waits for build artifacts
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
needs: setup
|
||||
needs: [setup, build]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install pnpm
|
||||
|
|
@ -221,10 +222,7 @@ jobs:
|
|||
path: |
|
||||
packages/ani-cursor/dist
|
||||
packages/winamp-eqf/built
|
||||
packages/webamp/built/*.js
|
||||
packages/webamp/built/*.mjs
|
||||
packages/webamp/built/*.map
|
||||
packages/webamp/built/*.html
|
||||
packages/webamp/built
|
||||
key: library-artifacts-${{ github.sha }}
|
||||
fail-on-cache-miss: true
|
||||
- name: Set version for all packages
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue