Skip to content

Commit 5231db4

Browse files
authored
Merge pull request #10 from lindenlab/mo-improve
versious improvements to validation and supporting testing
2 parents 1c6f45f + a717443 commit 5231db4

13 files changed

Lines changed: 791 additions & 259 deletions

File tree

.github/workflows/buildandtest.yml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,31 @@ name: Build and Test
22

33
on:
44
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
5+
branches:
6+
- "*"
87

98
jobs:
9+
check-version:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: lindenlab/check-tag-action@v1
13+
with:
14+
mode: check
15+
16+
lint:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v5
20+
21+
- name: golangci-lint
22+
uses: golangci/golangci-lint-action@v8
23+
with:
24+
args: --config .standard-lint.yml ./...
25+
1026
build-and-test:
1127
runs-on: ubuntu-latest
1228
steps:
13-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@v5
1430

1531
- name: Set up Go
1632
uses: actions/setup-go@v5
@@ -22,3 +38,11 @@ jobs:
2238

2339
- name: Test
2440
run: make cover
41+
42+
tag-release:
43+
needs: [check-version, lint, build-and-test]
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: lindenlab/check-tag-action@v1
47+
with:
48+
mode: tag

.github/workflows/check-version.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/golangci-lint.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/tag-on-merge.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/tag.sh

Lines changed: 0 additions & 155 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
PKGS := $(shell go list ./... | grep -v -E mocks)
22
SRCS := $(shell find . go.mod -name '*.go') go.mod
3-
export GO111MODULE=on
43

54
VERSION := $(shell cat Version)
65

0 commit comments

Comments
 (0)