chore: Configure Renovate #26
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.21, 16.20, 18.16] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup unit test environment | |
run: sudo apt-get install librsvg2-bin imagemagick exiftool | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Log used OS | |
run: uname -a | |
- name: Install dependencies (all) | |
run: npm install | |
- name: Run unit tests | |
run: npm test | |
sizewatcher: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: npx @adobe/sizewatcher | |
semantic-release: | |
runs-on: ubuntu-latest | |
needs: [build] | |
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') && github.ref == 'refs/heads/master' }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Use Node.js 18.16 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '18.16' | |
- run: npm install | |
- run: npm run semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} |