Fix sequence number bug when storage fails #327
Workflow file for this run
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: CI | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- master | |
- main | |
pull_request: | |
branches: | |
- master | |
- main | |
permissions: | |
contents: read | |
jobs: | |
golangci: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests | |
name: Linter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
cache: false | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.51 | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [1.21] | |
store-type: | |
- | |
- memory | |
- file | |
- mongo | |
fix-version: | |
- | |
- fix40 | |
- fix41 | |
- fix42 | |
- fix43 | |
- fix44 | |
- fix50 | |
- fix50sp1 | |
- fix50sp2 | |
steps: | |
- name: Setup | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Check out source | |
uses: actions/checkout@v2 | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-replica-set: replicaset | |
- name: Install ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0' | |
- name: Unit test | |
env: | |
FIX_TEST: ${{ matrix.fix-version }} | |
STORE_TYPE: ${{ matrix.store-type }} | |
run: if [ -z $FIX_TEST ] && [ -z $STORE_TYPE ]; then make build-src && make test-ci; fi | |
- name: Acceptance test | |
env: | |
GO111MODULE: on | |
MONGODB_TEST_CXN: mongodb://localhost:27017 | |
FIX_TEST: ${{ matrix.fix-version }} | |
STORE_TYPE: ${{ matrix.store-type }} | |
run: if [ $FIX_TEST ] && [ $STORE_TYPE ]; then make generate-ci && make build && make $FIX_TEST; fi |