Updated pr status check gh action config

This commit is contained in:
Ishan Jain 2021-09-02 13:00:48 +05:30
parent cce38fec6d
commit 7d45c6ad8f

View File

@ -9,14 +9,20 @@ jobs:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
# Checkout the head ref instead of the PR branch that github creates.
ref: ${{ github.head_ref }}
ref: ${{ github.event.pull_request.head.sha }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Use Cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('**/package-lock.json') }}
- name: Install and build
run: |
npm install