UI: Commit info consistent across screens #11240
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
validator: | |
name: Run Linters and Checkers | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check-out code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: "1" | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.20.6" | |
id: go | |
- name: Generate code | |
env: | |
NODE_OPTIONS: "--max-old-space-size=4096" | |
run: make gen | |
- name: Checks validator | |
run: make checks-validator | |
env: | |
GOLANGCI_LINT_FLAGS: --out-format github-actions | |
NODE_OPTIONS: "--max-old-space-size=4096" | |
test-go: | |
name: Run Go tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.20.6" | |
id: go | |
# No way to share code between workflows :-( If you change this, find and change the | |
# same code wherever "Find Go module and build caches" appears! | |
- name: Find Go module and build caches | |
run: | | |
echo GOMODCACHE=`go env GOMODCACHE` >> $GITHUB_ENV | |
echo GOCACHE=`go env GOCACHE` >> $GITHUB_ENV | |
cat $GITHUB_ENV | |
- name: Cache Go modules and builds | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-go-modules | |
with: | |
path: | | |
${{ env.GOMODCACHE }} | |
${{ env.GOCACHE }} | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('go.mod', 'go.sum') }} | |
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Run tests | |
env: | |
NODE_OPTIONS: "--max-old-space-size=4096" | |
run: | | |
mkdir ./webui/dist | |
touch ./webui/dist/index.html | |
make test-go |