CI changes: merged some flows into one with multiple jobs
All checks were successful
ci/ci / Check for spelling errors (pull_request) Successful in 21s
ci/ci / Make sure build does not fail (pull_request) Successful in 2m48s
ci/ci / notify-fail (pull_request) Has been skipped
ci/ci / Check for spelling errors (push) Successful in 22s
ci/ci / Make sure build does not fail (push) Successful in 2m51s
ci/ci / notify-fail (push) Has been skipped
All checks were successful
ci/ci / Check for spelling errors (pull_request) Successful in 21s
ci/ci / Make sure build does not fail (pull_request) Successful in 2m48s
ci/ci / notify-fail (pull_request) Has been skipped
ci/ci / Check for spelling errors (push) Successful in 22s
ci/ci / Make sure build does not fail (push) Successful in 2m51s
ci/ci / notify-fail (push) Has been skipped
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
This commit is contained in:
parent
a16af482de
commit
7ae4c4869e
3 changed files with 69 additions and 58 deletions
|
@ -1,31 +0,0 @@
|
||||||
name: build bin
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Make sure build does not fail
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
|
||||||
name: checkout
|
|
||||||
- name: install alsa devel
|
|
||||||
run: apt update && apt install libasound2-dev -y
|
|
||||||
- uses: https://code.forgejo.org/actions/setup-go@v5
|
|
||||||
name: install go
|
|
||||||
with:
|
|
||||||
go-version-file: './go.mod'
|
|
||||||
- run: go version
|
|
||||||
name: Go version
|
|
||||||
- run: make dep
|
|
||||||
name: install dependencies
|
|
||||||
- run: make build
|
|
||||||
name: build app
|
|
||||||
|
|
69
.forgejo/workflows/ci.yml
Normal file
69
.forgejo/workflows/ci.yml
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
name: ci/ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
codespell:
|
||||||
|
name: Check for spelling errors
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Annotate locations with typos
|
||||||
|
uses: "https://github.com/codespell-project/codespell-problem-matcher@v1"
|
||||||
|
- name: Codespell
|
||||||
|
uses: "https://github.com/codespell-project/actions-codespell@v2"
|
||||||
|
with:
|
||||||
|
check_filenames: true
|
||||||
|
check_hidden: true
|
||||||
|
skip: ./.git
|
||||||
|
|
||||||
|
compile:
|
||||||
|
name: Make sure build does not fail
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- codespell
|
||||||
|
if: ${{ success() }}
|
||||||
|
steps:
|
||||||
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
name: checkout
|
||||||
|
- name: install alsa devel
|
||||||
|
run: apt update && apt install libasound2-dev -y
|
||||||
|
- uses: https://code.forgejo.org/actions/setup-go@v5
|
||||||
|
name: install go
|
||||||
|
with:
|
||||||
|
go-version-file: './go.mod'
|
||||||
|
- run: go version
|
||||||
|
name: Go version
|
||||||
|
- run: make dep
|
||||||
|
name: install dependencies
|
||||||
|
- run: make build
|
||||||
|
name: build app
|
||||||
|
|
||||||
|
notify-fail:
|
||||||
|
name: notify-fail
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- codespell
|
||||||
|
- compile
|
||||||
|
if: ${{ failure() }}
|
||||||
|
env:
|
||||||
|
SERVER_URL: ${{ secrets.GOTIFY_SERVER_URL }}
|
||||||
|
TOKEN: ${{ secrets.GOTIFY_TOKEN }}
|
||||||
|
steps:
|
||||||
|
- name: gotify
|
||||||
|
run: |-
|
||||||
|
curl "${SERVER_URL}?token=${TOKEN}" \
|
||||||
|
-F "title='CI failed'" \
|
||||||
|
-F "message='Something failed at ${GITHUB_REPOSITORY} for user ${GITHUB_ACTOR}'" \
|
||||||
|
-F "priority=7" &> /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
name: Codespell
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
codespell:
|
|
||||||
name: Check for spelling errors
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Annotate locations with typos
|
|
||||||
uses: "https://github.com/codespell-project/codespell-problem-matcher@v1"
|
|
||||||
- name: Codespell
|
|
||||||
uses: "https://github.com/codespell-project/actions-codespell@v2"
|
|
||||||
with:
|
|
||||||
check_filenames: true
|
|
||||||
check_hidden: true
|
|
||||||
skip: ./.git
|
|
Loading…
Reference in a new issue