Skip to content

Commit

Permalink
refactor(ci): refactor gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
whg517 committed Nov 15, 2024
1 parent 9ba74f5 commit 2bc695f
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 59 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/ci.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lint

on:
push:
pull_request:

jobs:
go-lint:
name: Go Lint
runs-on: ubuntu-latest
steps:
- name: Clone the code
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '~1.23'

- name: Run linter
uses: golangci/golangci-lint-action@v6
with:
version: v1.62
md-lint:
name: Markdown Lint
runs-on: ubuntu-latest
steps:
- name: Clone the code
uses: actions/checkout@v4

- name: Run markdownlint
uses: DavidAnson/markdownlint-cli2-action@v18
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Tests

on:
push:
pull_request:

jobs:
go-test:
name: Go Test
runs-on: ubuntu-latest
steps:
- name: Clone the code
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '~1.23'

- name: Running Tests
run: |
go mod tidy
make test

0 comments on commit 2bc695f

Please sign in to comment.