这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .github/workflows/periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -34,4 +28,4 @@ jobs:
run: go get -v -t -d ./...

- name: Test
run: go test -v -tags=integration ./...
run: go test -v ./...
37 changes: 37 additions & 0 deletions .github/workflows/periodic_integration.yml
Original file line number Diff line number Diff line change
@@ -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 ./...