Merge pull request #348 from hifiwi-fi/dependabot/docker/node-21-alpine #949
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: [pull_request, push] | |
env: | |
FORCE_COLOR: 1 | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node_version: [20] | |
redis-version: [7] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node_version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- name: Start Redis | |
uses: supercharge/[email protected] | |
with: | |
redis-version: ${{ matrix.redis-version }} | |
- run: npm i | |
- name: Archive lockfile | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pacakge-lock.json | |
path: package-lock.json | |
- run: npm run generate-default-env | |
- run: npm test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # for api access rate limiting | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
files: .tap/report/lcov.info | |
automerge: | |
needs: test | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- uses: fastify/github-action-merge-dependabot@v3 | |
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' && contains(github.head_ref, 'dependabot/github_actions') }} | |
with: | |
github-token: ${{secrets.github_token}} |