Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Build test #8

Merged
merged 2 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build Pipeline for Test
'on':
- pull_request
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '^1.21'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: run recursive test
run: |
set -e
go test -v ./...
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
GOOS=linux GOARCH=amd64 make
echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u "${{ secrets.GHCR_USER }}" --password-stdin
docker build . --tag ghcr.io/${{ github.repository }}:${{ steps.vars.outputs.tag_name }} -f docker/Dockerfile --build-arg "ghcr_token=${{ secrets.GHCR_TOKEN }}"
docker push ghcr.io/${{ github.repository }}:${{ steps.vars.outputs.tag_name }}
docker push ghcr.io/${{ github.repository }}:${{ steps.vars.outputs.tag_name }}