forked from MChorfa/porter-helm3
-
Notifications
You must be signed in to change notification settings - Fork 3
29 lines (28 loc) · 835 Bytes
/
build.yaml
File metadata and controls
29 lines (28 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: build
on: [workflow_dispatch, push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: Build
run: make build
- name: Test
run: make test-unit
- name: Cross Compile
run: make xbuild-all
# publish is a manual step for now that devs build locally and upload to a release
#- name: Publish
# if: ${{ github.event_name == 'push' }}
# run: mage Publish
# env:
# GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }}