Skip to content

Commit

Permalink
ci: separate ci workflow into check and test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal committed Jun 18, 2024
1 parent b9ec8d6 commit 9eabac2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Check
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
check-packages:
name: Check Packages
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@v4.1.7

- name: Setup Go
uses: actions/setup-go@v5.0.1
with:
go-version: stable

- name: Check Formatting
run: |
go fmt ./...
git diff --exit-code HEAD
21 changes: 2 additions & 19 deletions .github/workflows/ci.yaml → .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,15 @@
name: CI
name: Test
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
check-packages:
name: Check Packages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.7

- name: Setup Go
uses: actions/setup-go@v5.0.1
with:
go-version: stable

- name: Check Formatting
run: |
go fmt ./...
git diff --exit-code HEAD
test-packages:
name: Test Packages
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Check Out
uses: actions/checkout@v4.1.7

- name: Setup Go
Expand Down

0 comments on commit 9eabac2

Please sign in to comment.