feature/add_dev_workflow #1
8
.github/workflows/image_creation.yaml
vendored
8
.github/workflows/image_creation.yaml
vendored
@ -1,8 +1,6 @@
|
||||
name: Build Push
|
||||
name: Build Push Prod
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- '*'
|
||||
jobs:
|
||||
@ -16,6 +14,10 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Exit if not on master
|
||||
if: endsWith(github.ref, master) == false
|
||||
run: exit 1
|
||||
|
||||
- name: Setup Quemu
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
|
||||
47
.github/workflows/test_workflow.yml
vendored
Normal file
47
.github/workflows/test_workflow.yml
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
name: dev workflow
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
- '*'
|
||||
- feature/**
|
||||
- 'feature/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.go'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TOKEN: ${{ secrets.TOKEN }}
|
||||
USERNAME: ${{ vars.USERNAME }}
|
||||
TAG_VERSION: ${{ github.ref_name }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
|
||||
- name: test with go
|
||||
run: go test -v ./...
|
||||
|
||||
vulnCheck:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TOKEN: ${{ secrets.TOKEN }}
|
||||
USERNAME: ${{ vars.USERNAME }}
|
||||
TAG_VERSION: ${{ github.ref_name }}
|
||||
|
||||
steps:
|
||||
- name: checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: go vuln check
|
||||
uses: golang/govulncheck-action@v1
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
Loading…
x
Reference in New Issue
Block a user