Skip to content

test: snapshot

test: snapshot #5

Workflow file for this run

name: bring-it
on:
push:
branches:
- master
jobs:
test:
strategy:
max-parallel: 1
matrix:
os:
- macos-latest
- windows-latest
- ubuntu-latest
node:
- 18.0.0
- 16.13.0
include:
- os: ubuntu-latest
node: 16.13.0
publish: true
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org
cache: npm
- name: Prepare
run: npm install npm -g
- name: Install
run: npm ci
- name: Test
run: npm test
- name: Publish
if: ${{ matrix.publish }}
run: npm exec bring-it npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}