Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 6 commits into from
Jan 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}."
Loading