From 05ed9abed39538d4df439eca93977a705a475564 Mon Sep 17 00:00:00 2001 From: sinkaroid Date: Sat, 25 Jun 2022 09:34:09 +0700 Subject: [PATCH] ci: add statuscode checks --- .github/workflows/status.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/status.yml diff --git a/.github/workflows/status.yml b/.github/workflows/status.yml new file mode 100644 index 0000000..3cdc42c --- /dev/null +++ b/.github/workflows/status.yml @@ -0,0 +1,29 @@ +name: Check website status + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm install + - name: Build + run: npm run build + - name: Check status code + run: npm run test \ No newline at end of file