Skip to content

Commit

Permalink
ci for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gofri committed Jan 20, 2024
1 parent 134b19b commit c7f3c56
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,19 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3.4.0
with:
version: v1.50.1
args: --timeout=3m
version: v1.54
args: --timeout=3m

lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3
with:
go-version: 1.19
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3
- name: Lint
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3.4.0
with:
version: v1.54
args: --timeout=3m
working-directory: github_ratelimit/github_ratelimit_test
6 changes: 5 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
jobs:
build_and_test:
runs-on: ubuntu-latest
env:
TEST_DIR: github_ratelimit/github_ratelimit_test
steps:
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3
with:
Expand All @@ -23,5 +25,7 @@ jobs:
run: go build -v ./...
- name: Vet
run: go vet -v ./...
- name: Vet-Test
run: cd "$TEST_DIR" && go vet -v ./...
- name: Test
run: cd github_ratelimit/github_ratelimit_test && go test -v -count=1 -shuffle=on -timeout=30m -race ./...
run: cd "$TEST_DIR" && go test -v -count=1 -shuffle=on -timeout=30m -race ./...

0 comments on commit c7f3c56

Please sign in to comment.