diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cbe12db..3430712 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,16 +1,15 @@ name: http-tests -on: +on: push: branches: - main paths-ignore: - - '**.md' + - "**.md" pull_request: paths-ignore: - - '**.md' + - "**.md" jobs: - build: name: Build @@ -23,29 +22,30 @@ jobs: runs-on: ${{ matrix.runs-on }} steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 - - name: Setup node - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: npm - - name: npm install - run: npm install + - name: npm install + run: npm install - - name: Compile - run: npm run build + - name: Compile + run: npm run build - - name: npm test - run: npm test + - name: npm test + run: npm test - - name: Format - shell: bash - run: npm run format-check - if: matrix.runs-on == 'ubuntu-latest' + - name: Format + shell: bash + run: npm run format-check + if: matrix.runs-on == 'ubuntu-latest' - - name: audit security - continue-on-error: true - run: npm audit --audit-level=moderate - if: matrix.runs-on == 'ubuntu-latest' + - name: audit security + continue-on-error: true + run: npm audit --audit-level=moderate + if: matrix.runs-on == 'ubuntu-latest'