Tests / Go and GTK tests (push) Failing after 1m8s
Add `/dist/` to `.gitignore` to exclude locally built distribution artifacts. Document the Gitea Actions workflow, release tagging, and branch protection setup in the README.
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
|
|
permissions:
|
|
code: read
|
|
|
|
jobs:
|
|
test:
|
|
name: Go and GTK tests
|
|
runs-on: ubuntu-latest
|
|
container: registry.fedoraproject.org/fedora:44
|
|
steps:
|
|
- name: Install system dependencies
|
|
run: >-
|
|
dnf install -y
|
|
bzip2 curl gcc gcc-c++ git gtk4-devel gtk4-layer-shell-devel
|
|
jq libX11-devel libXfixes-devel pkgconf-pkg-config
|
|
pulseaudio-utils ShellCheck tar gzip binutils
|
|
|
|
- name: Check out repository
|
|
uses: https://github.com/actions/checkout@v4
|
|
|
|
- name: Install the Go version from go.mod
|
|
shell: bash
|
|
run: |
|
|
set -Eeuo pipefail
|
|
go_version="$(awk '$1 == "go" { print $2 }' go.mod)"
|
|
curl --fail --location --silent --show-error \
|
|
"https://go.dev/dl/go${go_version}.linux-amd64.tar.gz" \
|
|
--output /tmp/go.tar.gz
|
|
rm -rf /usr/local/go
|
|
tar -C /usr/local -xzf /tmp/go.tar.gz
|
|
ln -sf /usr/local/go/bin/go /usr/local/bin/go
|
|
ln -sf /usr/local/go/bin/gofmt /usr/local/bin/gofmt
|
|
go version
|
|
|
|
- name: Run tests and static checks
|
|
run: ./scripts/ci/test.sh
|