1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 18:17:03 +00:00

chore: test build UI outside of release (#534)

Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
James Hillyerd
2024-09-29 12:49:58 -07:00
committed by GitHub
parent f140cf7989
commit 81bc7c2ea7

View File

@@ -10,28 +10,23 @@ jobs:
linux-go-build: linux-go-build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Linux Go ${{ matrix.go }} build name: Linux Go ${{ matrix.go }} build
strategy: strategy:
matrix: matrix:
go: go:
- '1.21' - '1.21'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}
check-latest: true check-latest: true
- name: Build and test - name: Build and test
run: | run: |
go build ./... go build ./...
go test -race -coverprofile=profile.cov ./... go test -race -coverprofile=profile.cov ./...
- name: Send coverage - name: Send coverage
uses: shogo82148/actions-goveralls@v1 uses: shogo82148/actions-goveralls@v1
with: with:
@@ -42,23 +37,18 @@ jobs:
windows-go-build: windows-go-build:
runs-on: windows-latest runs-on: windows-latest
name: Windows Go build name: Windows Go build
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.21' go-version: '1.21'
- name: Build - name: Build
run: go build ./... run: go build ./...
- name: Test - name: Test
run: go test -race -coverprofile="profile.cov" ./... run: go test -race -coverprofile="profile.cov" ./...
- name: Send coverage - name: Send coverage
uses: shogo82148/actions-goveralls@v1 uses: shogo82148/actions-goveralls@v1
with: with:
@@ -66,13 +56,32 @@ jobs:
flag-name: Windows-Go flag-name: Windows-Go
parallel: true parallel: true
ui-build:
runs-on: ubuntu-latest
name: UI Build
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'
cache-dependency-path: ui/yarn.lock
- name: Build frontend
run: |
yarn install --frozen-lockfile --non-interactive
yarn run build
working-directory: ./ui
coverage: coverage:
needs: needs:
- linux-go-build - linux-go-build
- windows-go-build - windows-go-build
name: Test Coverage name: Test Coverage
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: shogo82148/actions-goveralls@v1 - uses: shogo82148/actions-goveralls@v1
with: with: