Build & Test #561
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: Build & Test | |
on: | |
workflow_dispatch: | |
repository_dispatch: | |
types: [build-test] | |
env: | |
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} | |
GOPRIVATE: github.com/slingdata-io/* | |
jobs: | |
build-test: | |
if: "! (contains(github.event.head_commit.message, '[skip ci]') || contains(github.event.head_commit.message, '[bump]'))" | |
runs-on: [self-hosted, linux, ubuntu-20] | |
timeout-minutes: 25 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: myrotvorets/set-commit-status-action@master | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
sha: ${{ github.sha }} | |
status: pending | |
- name: Set up GoLang | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.22" | |
cache: false | |
- name: Load Secrets | |
uses: flarco/infisical-action@v3 | |
with: | |
version: 0.28.1 | |
client_id: ${{ secrets.INFISICAL_CLIENT_ID }} | |
client_secret: ${{ secrets.INFISICAL_CLIENT_SECRET }} | |
- name: Load Secrets (dbio) | |
uses: flarco/infisical-action@v3 | |
with: | |
version: 0.28.1 | |
client_id: ${{ secrets.INFISICAL_CLIENT_ID }} | |
client_secret: ${{ secrets.INFISICAL_CLIENT_SECRET }} | |
path: /dbio | |
env: dev | |
- name: Build Binary | |
run: | | |
# Prep | |
bash scripts/ci/prep.linux.sh | |
# build | |
bash scripts/ci/build.linux.sh dev | |
- name: Run Go Tests (sling) | |
run: | | |
export DEBUG='' | |
# Oracle env | |
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH | |
export PATH="$PATH:$ORACLE_HOME/bin" | |
bash scripts/test.sh | |
- name: Run Go Tests (dbio) | |
run: | | |
export DEBUG='' | |
# Oracle env | |
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH | |
export PATH="$PATH:$ORACLE_HOME/bin" | |
cd core/dbio | |
bash scripts/test.sh | |
- uses: myrotvorets/set-commit-status-action@master | |
if: always() | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
sha: ${{ github.sha }} | |
status: ${{ job.status }} |