Skip to content

Use library() instead of require() in R #719

Use library() instead of require() in R

Use library() instead of require() in R #719

Workflow file for this run

name: Node.js CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm ci
- run: npm run lint
- run: npx prettier --check .
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Tests fail to run on Windows, see
# https://github.com/curlconverter/curlconverter/pull/310
os: [ubuntu-latest]
node-version: [14, 16, 18, 20]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
deploy:
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && github.repository_owner == 'curlconverter'
steps:
- name: Deploy demo site
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: curlconverter/curlconverter.github.io
event-type: ship-it