Skip to content

chore: CI to test on all available Linux machines #10

chore: CI to test on all available Linux machines

chore: CI to test on all available Linux machines #10

Workflow file for this run

name: test
on:
workflow_dispatch:
pull_request:
push:
branches:
- 'main'
jobs:
test:
strategy:
max-parallel: 4
matrix:
runs-on: [ubuntu-latest, ubuntu-24.04, ubuntu-22.04, ubuntu-20.04]
include:
- runs-on: ubuntu-latest
service_key: ${{ secrets.SERVICE_KEY }}

Check failure on line 17 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / test

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 17, Col: 28): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.SERVICE_KEY .github/workflows/ci.yaml (Line: 19, Col: 28): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.SERVICE_KEY1
- runs-on: ubuntu-24.04
service_key: ${{ secrets.SERVICE_KEY1 }}
- runs-on: ubuntu-22.04
service_key: ${{ secrets.SERVICE_KEY2 }}
- runs-on: ubuntu-20.04
service-key: ${{ secrets.SERVICE_KEY3 }}
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- name: Move local action to folder where it can be tested
shell: bash
run: |
mkdir -p .github/actions/test
cp action.yml .github/actions/test/action.yml
- uses: ./.github/actions/test
with:
service-key: ${{ matrix.service-key }}
- name: (optional) Twingate logs
run: journalctl -u twingate
- name: (optional) Twingate status
run: twingate status
- name: Access a secure resource
env:
TEST_URL: http://business.prod.beamreachinc.int/
run: |
echo Calling $TEST_URL 🚀
curl -v $TEST_URL
- run: echo "SUCCESS!!! 🤩 This job's status is ${{ job.status }}."