diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index aeee5e2..1e4ba86 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -1,14 +1,23 @@ -name: 'deploy static site' +name: "DPC Static Site CI Workflow" on: workflow_dispatch: - push: - paths: - - .github/worflows/deploy.yml jobs: - first_thing: + build: + name: "Build and Test" runs-on: ubuntu-latest steps: - - run: echo 'works' - + - name: "Checkout code" + uses: actions/checkout@v2 + - name: "Build and Test" + run: | + mkdir -p _site + mkdir -p .jekyll-cache + ./scripts/build_and_test.sh + - name: "Check for broken links" + uses: lycheeverse/lychee-action@v1 + with: + fail: true + jobSummary: true + args: --no-progress --accept '200..=299, 401, 403, 405' . diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index aeee5e2..e58fa7b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: push: paths: - - .github/worflows/deploy.yml + - .github/workflows/deploy.yml jobs: first_thing: