diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 9575d4639b..861010b7f0 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -9,21 +9,16 @@ on: jobs: documentation: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2.3.4 with: fetch-depth: 1 - - name: Use Node.js uses: actions/setup-node@v2.3.0 - - name: Install Packages run: npm ci - - name: Generate Documentation run: npm run documentation - - name: Upload Documentation to Wiki uses: SwiftDocOrg/github-wiki-publish-action@v1 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ad34df0b33..f8e68c0e20 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,10 @@ on: branches: - master - v4.0 + pull_request: + branches: + - master + - v4.0 jobs: tests: @@ -14,30 +18,23 @@ jobs: matrix: node-version: [12, 14, 16] redis-version: [5, 6.0, 6.2] - steps: - uses: actions/checkout@v2.3.4 with: fetch-depth: 1 - - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2.3.0 with: node-version: ${{ matrix.node-version }} - - name: Update npm run: npm i -g npm if: ${{ matrix.node-version <= 14 }} - - name: Install Packages run: npm ci - - name: Build tests tools run: npm run build:tests-tools - - name: Run Tests run: npm run test -- --forbid-only --redis-version=${{ matrix.redis-version }} - - name: Upload to Codecov run: | curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import