goext/.gitea/workflows/tests.yml

37 lines
904 B
YAML
Raw Normal View History

2023-08-14 18:39:22 +02:00
# https://docs.gitea.com/next/usage/actions/quickstart
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
name: Build Docker and Deploy
run-name: Build & Deploy ${{ gitea.ref }} on ${{ gitea.actor }}
on: [push]
jobs:
run_tests:
name: Run goext test-suite
2023-08-14 18:39:22 +02:00
runs-on: bfb-cicd-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v4
with:
go-version-file: '${{ gitea.workspace }}/go.mod'
2023-08-14 18:39:22 +02:00
- name: Setup packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: curl python3
version: 1.0
- name: go version
run: go version
2023-08-14 18:39:22 +02:00
- name: Run tests
run: cd "${{ gitea.workspace }}" && make test
2023-08-14 18:39:22 +02:00