Skip to content

Commit

Permalink
Merge pull request #310 from alphagov/github-actions-conventions
Browse files Browse the repository at this point in the history
Use GOV.UK conventions for running GitHub Action workflows
  • Loading branch information
kevindew authored Jul 28, 2023
2 parents cf828c3 + fcaa53c commit 48f99a8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
inputs:
ref:
description: 'The branch, tag or SHA to checkout'
default: main
type: string

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref || github.ref }}
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
Expand Down

0 comments on commit 48f99a8

Please sign in to comment.