2022-02-04 12:44:16 -05:00
|
|
|
name: "Ecosystem client tools"
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- published
|
|
|
|
|
2022-07-16 18:22:38 -05:00
|
|
|
permissions: read-all
|
|
|
|
|
2022-02-04 12:44:16 -05:00
|
|
|
jobs:
|
|
|
|
client-tools:
|
|
|
|
name: Check client tools
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-07-13 16:15:33 -05:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-go@v3
|
2022-02-04 12:44:16 -05:00
|
|
|
with:
|
2022-06-07 00:53:33 -05:00
|
|
|
go-version: 1.18.x
|
2022-02-04 12:44:16 -05:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
cd $GITHUB_WORKSPACE
|
|
|
|
go get -u github.com/swaggo/swag/cmd/swag
|
|
|
|
go mod download
|
|
|
|
sudo apt-get update
|
2022-08-20 03:18:48 -05:00
|
|
|
sudo apt-get install libgpgme-dev libassuan-dev libbtrfs-dev libdevmapper-dev pkg-config rpm uidmap
|
2022-02-04 12:44:16 -05:00
|
|
|
# install skopeo
|
2022-08-20 03:18:48 -05:00
|
|
|
git clone -b v1.9.0 https://github.com/containers/skopeo.git
|
|
|
|
cd skopeo
|
|
|
|
make bin/skopeo
|
|
|
|
sudo cp bin/skopeo /usr/bin
|
|
|
|
skopeo -v
|
2022-02-04 12:44:16 -05:00
|
|
|
- name: Run push-pull tests
|
|
|
|
run: |
|
|
|
|
make push-pull
|
2022-04-27 01:00:20 -05:00
|
|
|
- name: Run metrics tests
|
|
|
|
run: |
|
|
|
|
make bats-metrics
|
|
|
|
- name: Run cve tests
|
|
|
|
run: |
|
|
|
|
make bats-cve
|
|
|
|
- name: Run sync test
|
|
|
|
run: |
|
|
|
|
make bats-sync
|
|
|
|
- name: Run scrub tests
|
|
|
|
run: |
|
2022-07-12 09:21:49 -05:00
|
|
|
make bats-scrub
|
2022-07-14 10:13:46 -05:00
|
|
|
- name: Run anonymous-push-pull tests
|
|
|
|
run: |
|
|
|
|
make anonymous-push-pull
|