Repository navigation
Update sharp to version 0.35.4 #266
This file contains hidden or 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': | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| name: Node ${{ matrix.node }} | |
| strategy: | |
| matrix: | |
| node: | |
| - '16' | |
| - '18' | |
| - '20' | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Install dependencies | |
| run: sudo add-apt-repository -y ppa:inkscape.dev/stable && sudo apt-get install -y optipng pngcrush pngquant graphicsmagick imagemagick libjpeg-turbo-progs inkscape libcairo2-dev libgif-dev libjpeg8-dev zlib1g-dev | |
| - run: npm install | |
| - run: npm test | |
| test-targets: | |
| runs-on: ubuntu-latest | |
| name: ${{ matrix.targets.name }} | |
| strategy: | |
| matrix: | |
| targets: | |
| - name: 'Lint' | |
| target: 'lint' | |
| - name: 'Coverage' | |
| target: 'coverage' | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: '16' | |
| - name: Install dependencies | |
| run: sudo add-apt-repository -y ppa:inkscape.dev/stable && sudo apt-get install -y optipng pngcrush pngquant graphicsmagick imagemagick libjpeg-turbo-progs inkscape libcairo2-dev libgif-dev libjpeg8-dev zlib1g-dev | |
| - run: npm install | |
| - run: npm run ${{ matrix.targets.target }} | |
| - name: Upload coverage | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| if: ${{ matrix.targets.target == 'coverage' }} |