Skip to content

Publish version tags automatically and install the latest release with one command #596

Publish version tags automatically and install the latest release with one command

Publish version tags automatically and install the latest release with one command #596

Workflow file for this run

name: core-check
on:
workflow_call:
inputs:
ref:
description: Source commit to check
required: false
type: string
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: core-check-${{ github.workflow }}-${{ inputs.ref && github.run_id || github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-22.04
timeout-minutes: 40
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_DB: oac_core_ci_tests
POSTGRES_USER: agents_api
POSTGRES_PASSWORD: core_test_only
ports:
- 5432/tcp
options: >-
--health-cmd "pg_isready -U agents_api -d oac_core_ci_tests"
--health-interval 5s
--health-timeout 5s
--health-retries 10
steps:
- uses: actions/checkout@v7
with:
ref: ${{ inputs.ref || github.sha }}
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
- uses: actions/setup-node@v6
with:
node-version: '22'
- name: Install pinned check prerequisites
run: |
npm install --global pnpm@10.30.3
sudo apt-get update
sudo apt-get install -y build-essential pkg-config libssl-dev
- name: Install Web acceptance browser
run: |
pnpm install --frozen-lockfile
pnpm exec playwright install --with-deps chrome
- name: Check standalone repository
env:
OAC_TEST_DATABASE_URL: postgres://agents_api:core_test_only@127.0.0.1:${{ job.services.postgres.ports['5432'] }}/oac_core_ci_tests?sslmode=disable
run: make check
- name: Build execution daemon
run: make build-daemon