Update image-publish.yml #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: did-dht-ci | |
# when: | |
# - a pull request is opened against main | |
# - commits are pushed to main | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# used to run action manually via the UI | |
workflow_dispatch: | |
jobs: | |
vulnerability-scan: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./impl | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21.3 | |
- name: Install Mage | |
run: go install github.com/magefile/mage | |
- name: Check Vulnerabilities | |
run: mage -v vuln | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./impl | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21.3 | |
- name: Install Mage | |
run: go install github.com/magefile/mage | |
- name: Build | |
run: mage build | |
- name: Test | |
run: mage citest |