From 81564c2f71d64fcf39f54d11e5fe8a2819558553 Mon Sep 17 00:00:00 2001 From: make-github-pseudonymous-again <5165674+make-github-pseudonymous-again@users.noreply.github.com> Date: Tue, 14 May 2024 22:22:35 +0200 Subject: [PATCH] :woman_technologist: dx: Smoke test NPM postinstall hook. Fixes #827. --- .github/workflows/ci:postinstall.yml | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci:postinstall.yml diff --git a/.github/workflows/ci:postinstall.yml b/.github/workflows/ci:postinstall.yml new file mode 100644 index 000000000..aac40d381 --- /dev/null +++ b/.github/workflows/ci:postinstall.yml @@ -0,0 +1,37 @@ +name: ci:postinstall + +on: + push: + branches: + - main + pull_request: + merge_group: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + + test: + name: Continuous integration (test postinstall) + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + + - name: Install 💾 + uses: ./.github/actions/install + + - name: Test that `public/favicon.ico` is there 🤒 + run: | + test -f public/favicon.ico + + - name: Test that `public/@fontsource/roboto` is there 🤖 + run: | + test -d public/@fontsource/roboto + + - name: Test that `public/pdfjs-dist/build` is there 📄 + run: | + test -d public/pdfjs-dist/build