Skip to content

Merge pull request #41 from jvanz/file-policy #198

Merge pull request #41 from jvanz/file-policy

Merge pull request #41 from jvanz/file-policy #198

Workflow file for this run

name: Validate Policies
on:
workflow_dispatch:
pull_request:
push:
jobs:
validate:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup updatecli
uses: updatecli/updatecli-action@v2
- name: Setup releasepost
uses: updatecli/[email protected]
- name: Validate
run: make test
- uses: tibdex/[email protected]
# Only run e2e tests from the main branch as we need some credentials
# that we don't want to risk leaking from pullrequest opened by random contributors
if: github.ref == 'refs/heads/main'
id: generate_testing_token
with:
app_id: ${{ secrets.UPDATECLIBOT_TESTING_APP_ID }}
private_key: ${{ secrets.UPDATECLIBOT_TESTING_APP_PRIVKEY }}
- name: e2e tests
# Only run e2e tests from the main branch as we need some credentials
# that we don't want to risk leaking from pullrequest opened by random contributors
if: github.ref == 'refs/heads/main'
run: make e2e-test
env:
GITHUB_TOKEN: ${{ steps.generate_testing_token.outputs.token }}
RELEASEPOST_GITHUB_TOKEN: ${{ steps.generate_testing_token.outputs.token }}