Skip to content
Open
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
19 changes: 19 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@ on:
- cron: "0 7 * * *"
workflow_dispatch:

permissions:
contents: read

jobs:
build:
permissions:
contents: read
actions: write
security-events: write
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -85,6 +92,9 @@ jobs:
if: matrix.runner-os == 'ubuntu-latest'

upload-event-file:
permissions:
contents: read
actions: write
runs-on: ubuntu-latest
steps:
# This is used by the subsequent publish-test-results.yaml
Expand All @@ -95,6 +105,9 @@ jobs:
path: ${{ github.event_path }}

build-for-e2e-test:
permissions:
contents: read
actions: write
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == 'github'
strategy:
fail-fast: false
Expand Down Expand Up @@ -140,6 +153,10 @@ jobs:
dist/win-x64/gei-windows-amd64.exe

e2e-test:
permissions:
contents: read
actions: write
checks: write
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == 'github'
needs: [build-for-e2e-test]
strategy:
Expand Down Expand Up @@ -276,6 +293,8 @@ jobs:
shell: pwsh

publish:
permissions:
contents: write
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs: [build, e2e-test]
Expand Down
Loading