Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ladydascalie committed Sep 29, 2024
1 parent 5a9ced0 commit 6eb67dd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 38 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ name: Go

on:
push:
branches: [ main, develop ]
branches: [main, develop]
pull_request:
branches: [ main, develop ]
branches: [main, develop]

jobs:

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

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "./go.mod"
cache: false

- name: Test
run: go test -v ./... --cover
- name: Test
run: go test -v ./... --cover
26 changes: 13 additions & 13 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ name: Lint

on:
push:
branches: [ main, develop ]
branches: [main, develop]
pull_request:
branches: [ main, develop ]
branches: [main, develop]
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2.5.2
with:
version: latest
skip-go-installation: true
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "./go.mod"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=5m --out-format=colored-line-number --issues-exit-code 0 --new-from-rev=main
15 changes: 0 additions & 15 deletions .golangci.yml

This file was deleted.

0 comments on commit 6eb67dd

Please sign in to comment.