38 lines
975 B
YAML
38 lines
975 B
YAML
#
|
|
# secrets.F3_READ_PRIVATE_MIRRORS_TOKEN
|
|
# https://code.forgejo.org/forgejo-mirror scope read:repository
|
|
#
|
|
on:
|
|
pull_request_target:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- 'wip-gitea'
|
|
|
|
jobs:
|
|
compliance-gitea:
|
|
runs-on: lxc-bookworm
|
|
steps:
|
|
- uses: https://data.forgejo.org/actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
- uses: https://data.forgejo.org/actions/setup-go@v5
|
|
with:
|
|
go-version-file: "go.mod"
|
|
|
|
- name: install jq make
|
|
run: |
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get -q install -qq -y jq make
|
|
|
|
- run: make deps-backend lint
|
|
|
|
- name: install zstd for actions/cache@v4
|
|
run: |
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get -q install -y -qq zstd
|
|
|
|
- name: run tests
|
|
run: |
|
|
./tests/run.sh prepare_container
|
|
su forgejo -c "./tests/run.sh test_gitea ${{ secrets.F3_READ_PRIVATE_MIRRORS_TOKEN }}"
|