Skip to content

Commit

Permalink
chore: CI to test on all available Linux machines (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekampf authored Jan 16, 2025
1 parent 68fd9f7 commit cbdfc51
Showing 1 changed file with 36 additions and 23 deletions.
59 changes: 36 additions & 23 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,44 @@ on:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
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: SERVICE_KEY
- runs-on: ubuntu-24.04
service-key: SERVICE_KEY1
- runs-on: ubuntu-22.04
service-key: SERVICE_KEY2
- runs-on: ubuntu-20.04
service-key: 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
- 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: ${{ secrets.SERVICE_KEY }}
- uses: ./.github/actions/test
with:
service-key: ${{ secrets[matrix.service-key] }}

- name: (optional) Twingate logs
run: journalctl -u twingate
- 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
- 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 }}."
- run: echo "SUCCESS!!! 🤩 This job's status is ${{ job.status }}."

0 comments on commit cbdfc51

Please sign in to comment.