webhook-action/.github/workflows/tests.yml

41 lines
712 B
YAML
Raw Normal View History

2022-11-10 13:06:47 +00:00
name: Tests
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
release:
types:
- created
jobs:
tests:
name: Tests
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
2024-03-28 02:02:50 +00:00
node-version: [20.x]
2022-11-10 13:06:47 +00:00
stability: [prefer-stable]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile --${{ matrix.stability }}
- name: Execute tests
run: yarn test