Skip to content

Commit f1ef6fa

Browse files
committed
Single unified workflow
1 parent 3d5d55f commit f1ef6fa

2 files changed

Lines changed: 18 additions & 25 deletions

File tree

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
1-
name: build
1+
name: driver
22

33
on:
4-
push:
5-
tags:
6-
- v*.*.*
4+
- push
5+
- pull_request
76

87
jobs:
9-
multi:
10-
needs: test-suite
8+
test-suite:
119
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-go@v2
13+
with:
14+
go-version: "^1.15"
15+
- name: Run tests
16+
run: go test ./...
17+
- name: Run vetting/linting checks
18+
run: go vet ./...
19+
build:
20+
if: startsWith(github.ref, 'refs/tags/v')
21+
runs-on: ubuntu-latest
22+
needs: test-suite
1223
steps:
1324
- name: Checkout
1425
uses: actions/checkout@v2
@@ -31,3 +42,4 @@ jobs:
3142
push: true
3243
tags: |
3344
civo/csi:${{ steps.tag.outputs.tag }}
45+
civo/csi:latest

.github/workflows/test.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)