Skip to content

Commit

Permalink
Testing devcontainers/ci
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbosch committed Oct 25, 2024
1 parent c0ae6ec commit 13146a5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ name: CI workflow
on:
workflow_dispatch:
push:
branches:
- "main"
pull_request:

jobs:
Expand All @@ -33,10 +35,12 @@ jobs:
hugo-version: "0.123.3"
extended: true

- name: Verify that devcontainer works
run: |
cd .devcontainer
docker buildx build -f Dockerfile -t test:latest .
- name: Build devcontainer and run automated tests
uses: devcontainers/[email protected]
with:
runCmd: |
# Do a sanity check that the server has started and say something about eclipse
curl http://localhost:1313/velocitas/docs/about/ | grep -e eclipse
- name: Build
run: |
Expand All @@ -60,8 +64,7 @@ jobs:
# Note that gh_pages isnt published to https://eclipse-velocitas.github.io/velocitas-docs/
# or the alias https://eclipse.dev/velocitas/
# So this basically just check if there are errors :-)
# Only publish to gh_pages if this was a push to master
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.event_name == 'push'}}
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 13146a5

Please sign in to comment.