mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
wip: 🔕 temporary commit
This commit is contained in:
parent
7ed6ec414f
commit
86aa4aab93
65
.github/workflows/tests.yml
vendored
65
.github/workflows/tests.yml
vendored
@ -39,41 +39,36 @@ jobs:
|
|||||||
- {uses: actions/setup-go@v5, with: {go-version-file: go.mod}}
|
- {uses: actions/setup-go@v5, with: {go-version-file: go.mod}}
|
||||||
- run: go test -race ./...
|
- run: go test -race ./...
|
||||||
|
|
||||||
# build:
|
build:
|
||||||
# name: Build for ${{ matrix.os }} (${{ matrix.arch }})
|
name: Build for ${{ matrix.os }} (${{ matrix.arch }})
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# strategy:
|
strategy:
|
||||||
# fail-fast: false
|
fail-fast: false
|
||||||
# matrix:
|
matrix:
|
||||||
# os: [linux, darwin] # linux, freebsd, darwin, windows
|
os: [linux, darwin] # linux, freebsd, darwin, windows
|
||||||
# arch: [amd64] # amd64, 386
|
arch: [amd64] # amd64, 386
|
||||||
# needs: [golangci-lint, go-test, validate-config-file]
|
needs: [golangci-lint, go-test]
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
#
|
- {uses: actions/setup-go@v5, with: {go-version-file: go.mod}}
|
||||||
# - uses: gacts/setup-go-with-cache@v1
|
- {uses: gacts/github-slug@v1, id: slug}
|
||||||
# with: {go-version-file: go.mod}
|
- env:
|
||||||
#
|
GOOS: ${{ matrix.os }}
|
||||||
# - {uses: gacts/github-slug@v1, id: slug}
|
GOARCH: ${{ matrix.arch }}
|
||||||
#
|
CGO_ENABLED: 0
|
||||||
# - name: Build application
|
LDFLAGS: -s -w -X gh.tarampamp.am/error-pages/internal/appmeta.version=${{ steps.slug.outputs.branch-name-slug }}
|
||||||
# env:
|
run: go build -trimpath -ldflags "$LDFLAGS" -o ./error-pages ./cmd/error-pages/
|
||||||
# GOOS: ${{ matrix.os }}
|
|
||||||
# GOARCH: ${{ matrix.arch }}
|
- name: Try to execute
|
||||||
# CGO_ENABLED: 0
|
if: matrix.os == 'linux'
|
||||||
# LDFLAGS: -s -w -X gh.tarampamp.am/error-pages/internal/version.version=${{ steps.slug.outputs.branch-name-slug }}@${{ steps.slug.outputs.commit-hash-short }}
|
run: ./error-pages --version && ./error-pages -h
|
||||||
# run: go build -trimpath -ldflags "$LDFLAGS" -o ./error-pages ./cmd/error-pages/
|
|
||||||
#
|
- uses: actions/upload-artifact@v4
|
||||||
# - name: Try to execute
|
with:
|
||||||
# if: matrix.os == 'linux'
|
name: error-pages-${{ matrix.os }}-${{ matrix.arch }}
|
||||||
# run: ./error-pages --version && ./error-pages -h
|
path: error-pages
|
||||||
#
|
if-no-files-found: error
|
||||||
# - uses: actions/upload-artifact@v4
|
retention-days: 1
|
||||||
# with:
|
|
||||||
# name: error-pages-${{ matrix.os }}-${{ matrix.arch }}
|
|
||||||
# path: error-pages
|
|
||||||
# if-no-files-found: error
|
|
||||||
# retention-days: 1
|
|
||||||
|
|
||||||
# generate:
|
# generate:
|
||||||
# name: Run templates generator
|
# name: Run templates generator
|
||||||
|
Loading…
Reference in New Issue
Block a user