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
33 changes: 33 additions & 0 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: PR Build

on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main

jobs:
build:
name: Run doctl build command
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@master

- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Run doctl apps dev build
run: doctl apps dev build --no-cache

- name: Start App container in background
run: docker run -d -e PORT=8080 -p 8080:8080 web:dev

- name: Wait for App to be ready and test
run: |
sleep 5
curl http://localhost:8080/

Loading