Skip to content

Commit

Permalink
Execute against pull_request_target (#65)
Browse files Browse the repository at this point in the history
This ensures we're not running our CI against the head of the repository branch
Also enable workflow_dispatch
  • Loading branch information
Dragos Dumitrache authored Jan 30, 2023
1 parent fc51b3a commit e9f4378
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 34 deletions.
30 changes: 0 additions & 30 deletions .circleci/config.yml

This file was deleted.

10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
paths:
- '**/*.go'
- '.github/workflows/test.yml'
pull_request:
pull_request_target:
types:
- opened
- reopened
Expand All @@ -18,14 +18,16 @@ on:
paths:
- '**/*.go'
- '.github/workflows/test.yml'

workflow_dispatch:


concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test:
if: github.event.pull_request.draft == false
if: github.event.pull_request_target.draft == false
name: runner / gotest
runs-on: ubuntu-22.04
container: ghcr.io/runatlantis/testing-env:latest
Expand All @@ -38,7 +40,7 @@ jobs:
# This job builds the website, starts a server to serve it, and then uses
# muffet (https://github.com/raviqqe/muffet) to perform the link check.
website_link_check:
if: github.event.pull_request.draft == false
if: github.event.pull_request_target.draft == false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit e9f4378

Please sign in to comment.