mirror of
https://github.com/kovetskiy/mark.git
synced 2025-06-08 07:22:40 +08:00
.github: Reorder steps to use module caching
This commit is contained in:
parent
e18b30b38d
commit
179700f3e4
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@ -11,7 +11,7 @@ on:
|
||||
- master
|
||||
|
||||
env:
|
||||
GO_VERSION: "~1.20.4"
|
||||
GO_VERSION: "~1.20.5"
|
||||
|
||||
jobs:
|
||||
# Runs Golangci-lint on the source code
|
||||
@ -19,15 +19,15 @@ jobs:
|
||||
name: ci-go-lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go 1.x
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
|
||||
@ -36,15 +36,15 @@ jobs:
|
||||
name: ci-unit-tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go 1.x
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
make test
|
||||
@ -54,15 +54,15 @@ jobs:
|
||||
name: ci-build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go 1.x
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build mark
|
||||
run: |
|
||||
make build
|
||||
|
Loading…
x
Reference in New Issue
Block a user