Skip to content

Commit

Permalink
Fix GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TechRiderWR committed Apr 17, 2024
1 parent a7c608a commit 2d8f616
Showing 1 changed file with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,35 @@ on:
tags: ["v*.*.*"]

jobs:
lint:
runs-on: oven/bun
steps:
- name: Lint code
run: |
bun lint
- name: Lint Dockerfile
uses: hadolint/hadolint@v2
with:
files: Dockerfile
lint-and-test:
runs-on: ubuntu-latest

test:
needs: lint
runs-on: oven/bun
steps:
- name: Test code
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up bun
uses: oven-sh/setup-bun@v1

- name: Lint and test code
run: |
bun install --frozen-lockfile
bun lint
bun test
build:
needs: test
needs: lint-and-test
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Lint Dockerfile
uses: hadolint/hadolint@v2
with:
files: Dockerfile

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit 2d8f616

Please sign in to comment.