Skip to content

fix: Fix installation + Add CI test for action (#13) #2

fix: Fix installation + Add CI test for action (#13)

fix: Fix installation + Add CI test for action (#13) #2

Workflow file for this run

name: test
on:
workflow_dispatch:
pull_request:
push:
branches:
- 'main'
jobs:
test:
runs-on: ubuntu-latest
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: ${{ secrets.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 }}."