Image Signing #24
Workflow file for this run
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: Pull Request | |
on: | |
pull_request: | |
types: ['synchronize', 'opened', 'reopened', 'ready_for_review'] | |
branches: | |
- main | |
env: | |
DB_VERSION: 1.0.0 | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run-ci: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
if: ${{ !github.event.pull_request.draft }} | |
steps: | |
# If the condition above is not met, aka, the PR is not in draft status, then this step is skipped. | |
# Because this step is part of the critical path, omission of this step will result in remaining CI steps not gettinge executed. | |
# As of 8/8/2022 there is now way to enforce this beahvior in GitHub Actions CI. | |
- run: exit 0 | |
Docker: | |
needs: [run-ci] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
with: | |
go-version: '1.20' | |
check-latest: true | |
- name: Build | |
run: | | |
docker system prune -a -f | |
docker build --no-cache -t api-server:test . | |
Linting: | |
needs: [run-ci] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
with: | |
go-version: '1.20' | |
check-latest: true | |
- name: Lint Internal Package | |
uses: golangci/[email protected] | |
with: | |
args: --verbose --timeout 5m | |
API-Test: | |
runs-on: ubuntu-latest | |
needs: [run-ci] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Nodejs | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: API Test | |
run: | | |
make ci-tests | |