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 d8a6703
Showing 1 changed file with 22 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,38 @@ 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
run: |
bun test
- name: Checkout repository
uses: actions/checkout@v4

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

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Lint
run: bun lint

- name: Test
run: 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@v3
with:
files: Dockerfile

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

0 comments on commit d8a6703

Please sign in to comment.