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:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
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:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: lint
|
|
||||||
container:
|
container:
|
||||||
image: oven/bun
|
image: oven/bun
|
||||||
steps:
|
steps:
|
||||||
@@ -30,6 +18,25 @@ jobs:
|
|||||||
run: bun install
|
run: bun install
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bun run 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:
|
build-and-push-docker:
|
||||||
needs: [build]
|
needs: [build]
|
||||||
|
|||||||
Reference in New Issue
Block a user