Skip to content

Commit

Permalink
Single unified workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjeffries committed Apr 30, 2021
1 parent 3d5d55f commit f1ef6fa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 25 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/build.yml → .github/workflows/driver.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
name: build
name: driver

on:
push:
tags:
- v*.*.*
- push
- pull_request

jobs:
multi:
needs: test-suite
test-suite:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "^1.15"
- name: Run tests
run: go test ./...
- name: Run vetting/linting checks
run: go vet ./...
build:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: test-suite
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -31,3 +42,4 @@ jobs:
push: true
tags: |
civo/csi:${{ steps.tag.outputs.tag }}
civo/csi:latest
19 changes: 0 additions & 19 deletions .github/workflows/test.yaml

This file was deleted.

0 comments on commit f1ef6fa

Please sign in to comment.