Skip to content

Instantly share code, notes, and snippets.

@paulmwatson
Created January 22, 2021 10:10
Show Gist options
  • Save paulmwatson/ec0753ff8f84ace3dc90d115f3cd564e to your computer and use it in GitHub Desktop.
Save paulmwatson/ec0753ff8f84ace3dc90d115f3cd564e to your computer and use it in GitHub Desktop.
Use nektos/act to test Github Actions with Docker locally
#.github/workflow/test.yaml
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test
run: |
docker-compose -f docker-compose.yml up
# Bash
act --platform ubuntu-latest=lucasalt/act_base:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment