Skip to content

refactor: using docker to execute CI tests on Github actions to prevent environmental breaking changes #188

refactor: using docker to execute CI tests on Github actions to prevent environmental breaking changes

refactor: using docker to execute CI tests on Github actions to prevent environmental breaking changes #188

Workflow file for this run

name: Run GoTest
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: test-amd64-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Test AMD64
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install System Dependencies
run: sudo apt-get install -y pkg-config gcc libseccomp-dev
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.6
- name: Install dependencies
run: go mod tidy
- name: Compile library
run: bash ./build/build_amd64.sh
- name: Setup Nodejs20.11.1
uses: actions/setup-node@v3
with:
node-version: '20.11.1'
- name: Link Nodejs
run: sudo ln -sf "$(which node)" /usr/local/bin/node
- name: Setup Python3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Link Python3.10
run: sudo ln -sf "$(which python3.10)" /usr/local/bin/python3
- name: Install Python dependencies
run: pip install httpx==0.27.2 requests==2.32.3 jinja2==3.0.3
- name: Debug
uses: mxschmitt/action-tmate@v3
- name: Run Intgeration tests
run: sudo go test -timeout 120s -v ./tests/integration_tests/...