diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index ccb994e..ea5cc23 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -4,20 +4,20 @@ on: pull_request: branches: ['main'] +env: + NODE_VERSION: 18.x + jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - name: Use Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: ${{ env.NODE_VERSION }} cache: 'npm' - run: npm i + - run: npm run lint - run: npm run test:ci