Add comments, add split the E2E test cases and other test cases. #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing | |
on: | |
push: | |
branches: [ "master", "develop" ] | |
pull_request: | |
branches: [ "master", "develop" ] | |
jobs: | |
tests: | |
name: Test on go ${{ matrix.go_version }} | |
strategy: | |
matrix: | |
go_version: [ | |
"1.19", | |
"1.20", | |
"1.21", | |
] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Redis Server in GitHub Actions | |
uses: supercharge/redis-github-action@1.4.0 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go_version }} | |
- name: Test | |
run: go test -v $(go list ./... | grep -v github.com/libi/dcron/e2e) | |
- name: Test E2E | |
run: go test -v ./e2e |