diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1a21edb..d7f6d5f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,26 +1,25 @@ -name: Tests +name: tests on: [push] jobs: - build: - - runs-on: ubuntu-latest + test: + runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [12.x] + os: [ubuntu-latest] + node: [12] steps: - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js ${{ matrix.node }} uses: actions/setup-node@v1 with: - node-version: ${{ matrix.node-version }} - - name: npm install, build, and test + node-version: ${{ matrix.node }} + - name: npm install && npm test run: | npm i npm test env: CI: true - diff --git a/README.md b/README.md index 6b81df5..3b5a9a3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # deploy-to-neocities +[![Actions Status](https://github.com/bcomnes/deploy-to-neocities/workflows/tests/badge.svg)](https://github.com/bcomnes/deploy-to-neocities/actions) + ## See also