chore: add name field to package.json (#1128) #88
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
name: Build Go Project | |
on: | |
push: | |
paths-ignore: | |
- website/** | |
pull_request: | |
paths-ignore: | |
- website/** | |
merge_group: | |
types: | |
- checks_requested | |
paths-ignore: | |
- website/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Setup Go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5 | |
with: | |
go-version: 1.23.x | |
- name: Set up node | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
with: | |
node-version: "20.9" | |
cache: npm | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: bin | |
key: ${{ runner.os }}-${{ hashFiles('Makefile', 'go.mod', 'go.sum') }} | |
- name: Install dependencies | |
run: npm ci | |
- run: make all | |
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 | |
with: | |
name: artifacts-${{ runner.os }}-${{ runner.arch }} | |
path: dist/ | |
- name: Check if repository is clean | |
run: | | |
STATUS="$(git status --porcelain)" | |
if [ -z "$STATUS" ]; then | |
echo Repository is clean. | |
else | |
echo "Repository is not clean: | |
$STATUS" | |
exit 1 | |
fi |