mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 6. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
89 lines
2.0 KiB
YAML
89 lines
2.0 KiB
YAML
name: Build and Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
linux-go-build:
|
|
runs-on: ubuntu-latest
|
|
name: Linux Go ${{ matrix.go }} build
|
|
strategy:
|
|
matrix:
|
|
go:
|
|
- '1.25'
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
check-latest: true
|
|
- name: Build and test
|
|
run: |
|
|
go build ./...
|
|
go test -race -coverprofile=profile.cov ./...
|
|
- name: Send coverage
|
|
uses: shogo82148/actions-goveralls@v1
|
|
with:
|
|
path-to-profile: profile.cov
|
|
flag-name: Linux-Go-${{ matrix.go }}
|
|
parallel: true
|
|
|
|
windows-go-build:
|
|
runs-on: windows-latest
|
|
name: Windows Go build
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: '1.25'
|
|
- name: Build
|
|
run: go build ./...
|
|
- name: Test
|
|
run: go test -race -coverprofile="profile.cov" ./...
|
|
- name: Send coverage
|
|
uses: shogo82148/actions-goveralls@v1
|
|
with:
|
|
path-to-profile: profile.cov
|
|
flag-name: Windows-Go
|
|
parallel: true
|
|
|
|
ui-build:
|
|
runs-on: ubuntu-latest
|
|
name: UI Build
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
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:
|
|
needs:
|
|
- linux-go-build
|
|
- windows-go-build
|
|
name: Test Coverage
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: shogo82148/actions-goveralls@v1
|
|
with:
|
|
parallel-finished: true
|