Skip to content

Commit

Permalink
[Chore] Add more tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
maypok86 committed Mar 5, 2024
1 parent 5e2e639 commit 15ea931
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "CodeQL"

on:
push:
branches: [ main, release ]
branches: [ main ]
pull_request:
branches: [ main, release ]
branches: [ main ]
schedule:
- cron: '17 11 * * 2'

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/git.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Git Checks

on:
pull_request:
on: [pull_request]

jobs:
block-fixup:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Lint

on:
push:
branches-ignore:
- release
on: [push]

jobs:
lint:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test

on: [push]

jobs:
test-windows:
strategy:
matrix:
go-version: [ 1.19.x, 1.20.x, 1.21.x ]

runs-on: windows-latest

steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Unit tests
run: make test.unit
10 changes: 3 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
name: Test

on:
push:
branches-ignore:
- release
on: [push]

jobs:
test:
strategy:
matrix:
go-version: [ 1.19.x ]
platform: [ ubuntu-latest ]
go-version: [ 1.19.x, 1.20.x, 1.21.x ]

runs-on: ${{ matrix.platform }}
runs-on: ubuntu-latest

steps:
- name: Set up Go 1.x
Expand Down

0 comments on commit 15ea931

Please sign in to comment.