Skip to content

Commit ab1f2c4

Browse files
authored
feat: add good default ci jobs (#4850)
1 parent c7885f2 commit ab1f2c4

File tree

4 files changed

+63
-1
lines changed

4 files changed

+63
-1
lines changed

changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
## Changes
66

7-
- []() Bump `cosmos-sdk` version to `v0.53.5` and minimum Go version to `1.25`.
7+
- [#4850](https://github.com/ignite/cli/pull/4850) Add default GitHub Actions for linting and testing.
8+
- [#4849](https://github.com/ignite/cli/pull/4849) Bump `cosmos-sdk` version to `v0.53.5` and minimum Go version to `1.25`.
89

910
## [`v29.6.2`](https://github.com/ignite/cli/releases/tag/v29.6.2)
1011

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Unit tests
2+
on:
3+
pull_request:
4+
jobs:
5+
tests:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Check out source
9+
uses: actions/checkout@v4
10+
- name: Set up Go
11+
uses: actions/setup-go@v5
12+
with:
13+
go-version: "stable"
14+
check-latest: true
15+
- name: Tests
16+
run: |
17+
make test
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Lint PR
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- edited
7+
- synchronize
8+
permissions:
9+
contents: read
10+
jobs:
11+
lint:
12+
permissions:
13+
pull-requests: read
14+
statuses: write
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: amannn/[email protected]
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Lint
2+
on:
3+
pull_request:
4+
paths:
5+
- "**/*.go"
6+
- "go.mod"
7+
- "go.sum"
8+
- "**/go.mod"
9+
- "**/go.sum"
10+
merge_group:
11+
permissions:
12+
contents: read
13+
jobs:
14+
golangci:
15+
name: golangci-lint
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-go@v5
20+
with:
21+
go-version: "stable"
22+
check-latest: true
23+
- name: run linting
24+
run: |
25+
make lint

0 commit comments

Comments
 (0)