use artifacts instead of checkout
This commit is contained in:
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@@ -8,20 +8,8 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: oven/bun
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Biome
|
||||
run: bun install -g biome
|
||||
- name: Run Biome lint
|
||||
run: biome lint .
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: lint
|
||||
container:
|
||||
image: oven/bun
|
||||
steps:
|
||||
@@ -30,6 +18,25 @@ jobs:
|
||||
run: bun install
|
||||
- name: Build
|
||||
run: bun run build
|
||||
- name: Create Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: build
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
container:
|
||||
image: oven/bun
|
||||
steps:
|
||||
- name: Download Artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: build
|
||||
- name: Install Biome
|
||||
run: bun install -g biome
|
||||
- name: Run Biome lint
|
||||
run: biome lint .
|
||||
|
||||
build-and-push-docker:
|
||||
needs: [build]
|
||||
|
||||
Reference in New Issue
Block a user