zrok/.github/workflows/ci-build.yml

41 lines
819 B
YAML
Raw Normal View History

2022-11-02 20:08:50 +01:00
name: CI Build
2022-11-02 19:14:30 +01:00
2023-02-08 17:40:27 +01:00
on:
push:
branches:
- '**'
tags-ignore:
- '**'
2023-02-11 03:27:32 +01:00
paths-ignore:
- 'docs/**'
- 'website/**'
2022-11-02 19:14:30 +01:00
jobs:
2022-11-02 20:07:43 +01:00
ubuntu-build:
runs-on: ubuntu-20.04
2022-11-02 19:14:30 +01:00
steps:
- uses: actions/checkout@v3
- name: setup-go
uses: actions/setup-go@v3
with:
go-version: 1.19.3
2022-11-02 19:24:11 +01:00
- name: setup-node
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm install
working-directory: ui
- run: npm run build
working-directory: ui
2022-11-02 19:34:55 +01:00
env:
CI: ""
2022-11-02 19:24:11 +01:00
2022-11-02 20:43:17 +01:00
- name: go install
run: go install -ldflags "-X github.com/openziti/zrok/build.Version=${{ github.ref }} -X github.com/openziti/zrok/build.Hash=${{ github.sha }}" ./...
2022-11-02 19:14:30 +01:00
2022-11-02 19:24:11 +01:00
- name: test
2022-11-02 19:14:30 +01:00
run: go test -v ./...