Skip to content

Commit

Permalink
ci: add build
Browse files Browse the repository at this point in the history
  • Loading branch information
octobocto committed Sep 12, 2024
1 parent aad3891 commit ab8f01a
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 31 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build project
on: pull_request

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: "1.23"

- uses: extractions/setup-just@v1

- uses: bufbuild/buf-action@v1
with:
setup_only: true

- run: just build
12 changes: 0 additions & 12 deletions .github/workflows/golangci-lint.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Lint project
on: pull_request
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.23

- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3

go-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: "1.23"

- uses: actions/cache@v4
name: Cache tools files
with:
path: .bin/go
key: ${{ runner.os }}-tools-${{ hashFiles('./scripts/check-go*.sh') }}
restore-keys: |
${{ runner.os }}-tools-
- name: format
env:
WRITE: "1"
run: |
bash scripts/check-goimports.sh
bash scripts/check-gogroup.sh
- run: git diff --exit-code
19 changes: 0 additions & 19 deletions Makefile

This file was deleted.

0 comments on commit ab8f01a

Please sign in to comment.