diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml index dbc4bd3..6ad8cb4 100644 --- a/.github/workflows/periodic.yml +++ b/.github/workflows/periodic.yml @@ -15,12 +15,6 @@ jobs: runs-on: ${{ matrix.platform }} - services: - etcd: - image: quay.io/coreos/etcd:v3.5.1 - ports: - - 2379:2379 - steps: - name: Install Go uses: actions/setup-go@v2 @@ -34,4 +28,4 @@ jobs: run: go get -v -t -d ./... - name: Test - run: go test -v -tags=integration ./... + run: go test -v ./... diff --git a/.github/workflows/periodic_integration.yml b/.github/workflows/periodic_integration.yml new file mode 100644 index 0000000..fe4292e --- /dev/null +++ b/.github/workflows/periodic_integration.yml @@ -0,0 +1,37 @@ +name: Run periodic tests on multi environment + +on: + workflow_dispatch: + branches: [ main ] + schedule: + - cron: 0 0 * * SUN + +jobs: + test: + strategy: + matrix: + go-version: [1.17.x] + platform: [ubuntu-latest] + + runs-on: ${{ matrix.platform }} + + services: + etcd: + image: quay.io/coreos/etcd:v3.5.1 + ports: + - 2379:2379 + + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Get dependcies + run: go get -v -t -d ./... + + - name: Test + run: go test -v -tags=integration ./...