ADD test to all branches for changes
All checks were successful
dev workflow / build (push) Successful in 24s

This commit is contained in:
maximo tejeda 2024-11-16 13:54:43 -04:00
parent fba129ec43
commit 37a6573ce8
2 changed files with 33 additions and 3 deletions

View File

@ -1,8 +1,6 @@
name: Build Push name: Build Push Prod
on: on:
push: push:
branches:
- master
tags: tags:
- '*' - '*'
jobs: jobs:
@ -16,6 +14,10 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Exit if not on master
if: endsWith(github.ref, master) == false
run: exit 1
- name: Setup Quemu - name: Setup Quemu
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3

28
.github/workflows/test_workflow.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: dev workflow
on:
push:
branches:
- main
- dev
- 'feature/**'
jobs:
build:
runs-on: ubuntu-latest
env:
TOKEN: ${{ secrets.TOKEN }}
USERNAME: ${{ vars.USERNAME }}
TAG_VERSION: ${{ github.ref_name }}
steps:
- name:
uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build
run: go build -v ./...
- name: test with go
run: go test -v ./...