1c0da2e1cb
Several workflows were missing the emoji-prefixed step naming used elsewhere (e.g. nightly-build.yml, build-submit-ios/android.yml), and a couple of files that already used emoji had a few gaps. Fills those in across all workflow files. Job-level `name:` fields are left untouched since some are pinned as required branch-protection check names.
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
name: golang
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: ⬇️ Git Checkout
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
- name: 🔧 Set up Go tooling
|
|
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
|
with:
|
|
go-version-file: bskyweb/go.mod
|
|
cache-dependency-path: bskyweb/go.sum
|
|
- name: 📄 Dummy Static Files
|
|
run: touch bskyweb/static/js/blah.js && touch bskyweb/static/css/blah.txt && touch bskyweb/static/media/blah.txt
|
|
- name: 🔍 Check
|
|
run: cd bskyweb/ && make check
|
|
- name: 🏗️ Build (binary)
|
|
run: cd bskyweb/ && make build
|
|
- name: 🧪 Test
|
|
run: cd bskyweb/ && make test
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: ⬇️ Git Checkout
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
- name: 🔧 Set up Go tooling
|
|
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
|
with:
|
|
go-version-file: bskyweb/go.mod
|
|
cache-dependency-path: bskyweb/go.sum
|
|
- name: 📄 Dummy Static Files
|
|
run: touch bskyweb/static/js/blah.js && touch bskyweb/static/css/blah.txt && touch bskyweb/static/media/blah.txt
|
|
- name: 🧹 Lint
|
|
run: cd bskyweb/ && make lint
|