Skip to content

Commit

Permalink
run tests on push
Browse files Browse the repository at this point in the history
  • Loading branch information
siliconbrain committed Feb 15, 2022
1 parent 6231ba1 commit f05ced3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,40 @@
name: Go
on: [push]
jobs:

on:
- push

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v1
with:
go-version: 1.17

- name: Check out code into the Go module directory
uses: actions/checkout@master

- name: Build kurun binary
run: go build -v .

tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v1
with:
go-version: 1.17
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@master

- name: Get dependencies
run: go mod download
- name: Run kurun tests
run: go test ./...

- name: Run tunnel tests
run: go test ./...
working-directory: ./tunnel

- name: Build
run: go build -v .
6 changes: 3 additions & 3 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Server Image
name: Server image

on:
push:
Expand All @@ -11,7 +11,7 @@ env:

jobs:
docker:
name: Docker
name: Docker build and push
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
env:
REF_NAME: ${{ github.ref_name }}
REF_TYPE: ${{ github.ref_type }}
- name: Build Server
- name: Build kurun-server image
uses: docker/build-push-action@v2
with:
context: tunnel/
Expand Down

0 comments on commit f05ced3

Please sign in to comment.