This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
Small edits to improve the readability of the workflows #1
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: PR build | |
on: | |
pull_request: | |
branches: [main] | |
env: | |
IMAGE_TAG: ${{ github.event.number }} | |
jobs: | |
build-galasabld: | |
name: Build galasabld | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Build galasabld using the Makefile | |
run: | | |
make all | |
- name: Build and test galasabld image | |
run: | | |
docker build -t galasabld:${{env.IMAGE_TAG}} --build-arg platform=linux-amd64 -f dockerfiles/galasabld/dockerfile.galasabld . | |
docker run --rm galasabld:${{env.IMAGE_TAG}} | |
build-openapi2beans: | |
name: Build openapi2beans | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Build and test openapi2beans using the Makefile | |
run: | | |
make all -C openapi2beans/ | |
- name: Build and test openapi2beans image | |
run: | | |
docker build -t openapi2beans:${{env.IMAGE_TAG}} --build-arg platform=linux-x86_64 -f dockerfiles/openapi2beans/dockerfile.openapi2beans . | |
docker run --rm openapi2beans:${{env.IMAGE_TAG}} |