diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 1c123e474..7f4a9a6c3 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -18,10 +18,6 @@ merge of your pull request! **Why**: - - -**How**: - **Checklist**: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d1191207..30321d5c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,11 @@ name: Nodejs Test # Triggers the workflow on push or pull request events -on: [push, pull_request] +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] jobs: platform_spec_test: @@ -11,7 +15,7 @@ jobs: matrix: # Test all mainstream operating system os: [ubuntu-latest, macos-latest, windows-latest] - node: [16] + node: [18] runs-on: ${{ matrix.os }} steps: # Pull repo to test machine @@ -21,18 +25,6 @@ jobs: with: # The Node.js version to configure node-version: ${{ matrix.node }} - # Caching dependencies to speed up workflows - - name: Get npm cache directory - id: npm-cache-dir - run: | - echo "::set-output name=dir::$(npm config get cache)" - - uses: actions/cache@v2 - id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true' - with: - path: ${{ steps.npm-cache-dir.outputs.dir }} - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - name: Install npm dependencies run: npm install - name: Print put node & npm version @@ -46,7 +38,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node: [10, 12, 14, 18] + node: [10, 12, 14, 16, 19] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2