fix: Fix installation + Add CI test for action (#13) #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}." |