Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 5998ff1

Browse files
committed
Add integration action
1 parent f11304b commit 5998ff1

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/integration.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: ci
2+
on: [push, pull_request]
3+
4+
jobs:
5+
integration:
6+
runs-on: ubuntu-latest
7+
env:
8+
CODER_URL: ${{ secrets.CODER_URL }}
9+
CODER_EMAIL: ${{ secrets.CODER_EMAIL }}
10+
CODER_PASSWORD: ${{ secrets.CODER_PASSWORD }}
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/cache@v1
14+
with:
15+
path: ~/go/pkg/mod
16+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
17+
restore-keys: |
18+
${{ runner.os }}-go-
19+
- uses: actions/setup-go@v2
20+
with:
21+
go-version: '^1.14'
22+
- name: go test
23+
run: go test ./ci/integration/...

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ jobs:
4343
- name: test
4444
uses: ./ci/image
4545
with:
46-
args: go test ./...
46+
args: go test ./internal/... ./cmd/...

0 commit comments

Comments
 (0)