Skip to content

Commit

Permalink
chore: update ci scripts
Browse files Browse the repository at this point in the history
Signed-off-by: iGxnon <[email protected]>
  • Loading branch information
iGxnon committed Jan 22, 2024
1 parent 231ecb6 commit f1bd769
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 28 deletions.
52 changes: 25 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,27 @@ on:
schedule:
- cron: "00 19 * * *" # run ci periodically at 3 am
pull_request:
branches: [main]
branches: [ main ]

env:
GO_VERSION: '1.21'

jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{env.GO_VERSION}}
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod

- name: Format code
uses: iamnotaturtle/[email protected]
with:
# This part is also where you can pass other options, for example:
only_changed: True
- name: Format code
uses: iamnotaturtle/[email protected]
with:
# This part is also where you can pass other options, for example:
only_changed: True

lint:
name: Lint Check
Expand All @@ -38,7 +36,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{env.GO_VERSION}}
go-version-file: go.mod

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand All @@ -49,16 +47,16 @@ jobs:
name: Xline Operator Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{env.GO_VERSION}}
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version-file: go.mod

- name: Build and test
run: make test
- name: Build and test
run: make test

commit:
name: Commit Message Validation
Expand All @@ -81,8 +79,8 @@ jobs:
name: Spell Check
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v2
- name: Checkout Actions Repository
uses: actions/checkout@v2

- name: Check Spelling
uses: crate-ci/typos@master
- name: Check Spelling
uses: crate-ci/typos@master
1 change: 0 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ concurrency:

env:
KIND_VERSION: v0.20.0
GO_VERSION: '1.21.3'

jobs:
validation:
Expand Down

0 comments on commit f1bd769

Please sign in to comment.