manual-approval/.github/workflows/ci.yaml
2025-03-22 16:15:21 +05:30

58 lines
1.1 KiB
YAML

name: CI
on:
workflow_dispatch:
push:
branches:
- main
- '*'
paths-ignore:
- '**/*.md'
pull_request:
branches:
- main
paths-ignore:
- '**/*.md'
jobs:
ci:
name: CI
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Refresh module hashsums
run: make tidy
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: snskArora
password: ${{ secrets.grained_auth }}
- name: Build
run: make build
env:
VERSION: latest
# - name: Push
# run: make push
# env:
# VERSION: latest
- name: Test
run: make test
- name: Lint
run: make lint