forked from pocketbase/pocketbase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7192f2c
commit 5e982a8
Showing
1 changed file
with
54 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
name: basebuild | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.11.0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '>=1.22.5' | ||
|
||
# This step usually is not needed because the /ui/dist is pregenerated locally | ||
# but its here to ensure that each release embeds the latest admin ui artifacts. | ||
# If the artificats differs, a "dirty error" is thrown - https://goreleaser.com/errors/dirty/ | ||
- name: Build Admin dashboard UI | ||
run: npm --prefix=./ui ci && npm --prefix=./ui run build | ||
|
||
# Temporary disable as the types can have random generated identifiers making it non-deterministic. | ||
# | ||
# # Similar to the above, the jsvm types are pregenerated locally | ||
# # but its here to ensure that it wasn't forgotten to be executed. | ||
# - name: Generate jsvm types | ||
# run: go run ./plugins/jsvm/internal/types/types.go | ||
|
||
# The prebuilt golangci-lint doesn't support go 1.18+ yet | ||
# https://github.com/golangci/golangci-lint/issues/2649 | ||
# - name: Run linter | ||
# uses: golangci/golangci-lint-action@v3 | ||
|
||
- name: Run tests | ||
run: go test ./... | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v3 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# name: basebuild | ||
|
||
# on: | ||
# pull_request: | ||
# push: | ||
|
||
# jobs: | ||
# goreleaser: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# fetch-depth: 0 | ||
|
||
# - name: Set up Node.js | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: 20.11.0 | ||
|
||
# - name: Set up Go | ||
# uses: actions/setup-go@v5 | ||
# with: | ||
# go-version: '>=1.22.5' | ||
|
||
# # This step usually is not needed because the /ui/dist is pregenerated locally | ||
# # but its here to ensure that each release embeds the latest admin ui artifacts. | ||
# # If the artificats differs, a "dirty error" is thrown - https://goreleaser.com/errors/dirty/ | ||
# - name: Build Admin dashboard UI | ||
# run: npm --prefix=./ui ci && npm --prefix=./ui run build | ||
|
||
# # Temporary disable as the types can have random generated identifiers making it non-deterministic. | ||
# # | ||
# # # Similar to the above, the jsvm types are pregenerated locally | ||
# # # but its here to ensure that it wasn't forgotten to be executed. | ||
# # - name: Generate jsvm types | ||
# # run: go run ./plugins/jsvm/internal/types/types.go | ||
|
||
# # The prebuilt golangci-lint doesn't support go 1.18+ yet | ||
# # https://github.com/golangci/golangci-lint/issues/2649 | ||
# # - name: Run linter | ||
# # uses: golangci/golangci-lint-action@v3 | ||
|
||
# - name: Run tests | ||
# run: go test ./... | ||
|
||
# - name: Run GoReleaser | ||
# uses: goreleaser/goreleaser-action@v3 | ||
# with: | ||
# distribution: goreleaser | ||
# version: latest | ||
# args: release --clean | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |