prepare all syntax for linters and spellchecks

This commit is contained in:
Florian Schüller 2024-12-20 18:35:10 +01:00 committed by Florian Schüller
parent b932d218e3
commit 734c132500
13 changed files with 84 additions and 91 deletions

View file

@ -1,12 +1,12 @@
name: Build & Deploy Container
on:
on: # yamllint disable-line rule:truthy
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]
merge_group:
types: [ "checks_requested" ]
types: ["checks_requested"]
jobs:
build-base:

View file

@ -1,7 +1,7 @@
# This action creates a release every second Wednesday
name: "Create and push release tag"
on:
on: # yamllint disable-line rule:truthy
workflow_dispatch:
schedule:
- cron: "0 8 * * 3"

View file

@ -3,29 +3,29 @@
name: Go
on:
on: # yamllint disable-line rule:truthy
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]
merge_group:
types: [ "checks_requested" ]
types: ["checks_requested"]
jobs:
build:
runs-on: ubuntu-latest
uses: ./.github/workflows/testdeps.yaml
uses: ./.github/workflows/testdeps.yaml
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Build
run: go build -v ./...
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Test
run: go test -v ./...
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...

View file

@ -1,6 +1,6 @@
name: "Verify PR best practices"
on:
on: # yamllint disable-line rule:truthy
pull_request_target:
branches: [main]
types: [opened, synchronize, reopened, edited]

View file

@ -1,26 +1,25 @@
name: Integration tests
on:
on: # yamllint disable-line rule:truthy
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]
merge_group:
types: [ "checks_requested" ]
types: ["checks_requested"]
jobs:
build:
runs-on: ubuntu-latest
uses: ./.github/workflows/testdeps.yaml
uses: ./.github/workflows/testdeps.yaml
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Install integration test env
run: |
sudo apt update
sudo apt install -y pytest golang
- name: Install integration test env
run: |
sudo apt update
sudo apt install -y pytest golang
- name: Run integration tests via pytest
run: |
# use "-s" for now for easier debugging
sudo pytest -s -v
- name: Run integration tests via pytest
run: |
# use "-s" for now for easier debugging
sudo pytest -s -v

View file

@ -1,6 +1,6 @@
name: "Create GitHub release"
on:
on: # yamllint disable-line rule:truthy
push:
tags:
- "v*"

View file

@ -1,6 +1,6 @@
name: Install common test dependencies
on:
on: # yamllint disable-line rule:truthy
workflow_call:
jobs: