Bump follow-redirects from 1.15.2 to 1.15.6 #62
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: CI | |
on: [ push ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install imagemagick | |
run: | | |
sudo apt install imagemagick gnuplot | |
sudo sed -i 's/<policy domain="coder" rights="none" pattern="PDF" \/>/<policy domain="coder" rights="read|write" pattern="PDF" \/>/g' /etc/ImageMagick-6/policy.xml | |
- name: Install patchouli | |
run: | | |
sudo npm install | |
sudo npm run docker-build | |
sudo npm i -g . --unsafe-perm | |
- name: Install mocha globally | |
run: sudo npm i -g mocha | |
- name: Run tests | |
run: npm test | |
- name: Upload artifacts | |
if: always() | |
uses: actions/upload-artifact@v1 | |
with: | |
name: integration | |
path: test/integration/artifacts/ | |
publish: | |
runs-on: ubuntu-latest | |
needs: [test] | |
if: success() && github.ref == 'refs/heads/master' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Publish to docker hub | |
uses: elgohr/Publish-Docker-Github-Action@v5 | |
with: | |
name: kotborealis/patchouli | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
context: ./docker/ | |
- name: Publish to npm | |
uses: pascalgn/npm-publish-action@4f4bf159e299f65d21cd1cbd96fc5d53228036df | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |