Skip to content

Commit

Permalink
updated ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
chideat committed Jan 8, 2024
1 parent a680943 commit 77b9a23
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,37 @@
name: dev

on: [pull_request]
on:
push:
branch: [ "main" ]
pull_request:

jobs:
test:
name: Test with Coverage
check:
name: Golang Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
args: --timeout=15m
unit-test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Check out code
uses: actions/checkout@v2
go-version-file: go.mod
cache: false
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
go mod download
Expand Down

0 comments on commit 77b9a23

Please sign in to comment.