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:
|
2023-01-24 17:38:58 +01:00
|
|
|
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
|
2023-01-13 21:01:34 +01:00
|
|
|
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 ./...
|