build(deps-dev): bump sinon from 15.2.0 to 17.0.1 (#80) #163
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: Serverless Plugin For Each CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
Setup-Env: | |
runs-on: ubuntu-latest | |
timeout-minutes: 1 | |
outputs: | |
isMain: ${{ steps.setupEnv.outputs.isMain }} | |
steps: | |
- name: Setup Env | |
id: setupEnv | |
uses: Brightspace/actions-parse-workflow-env@master | |
Tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
strategy: | |
matrix: | |
node: [18] | |
steps: | |
- name: Checkout | |
uses: Brightspace/third-party-actions@actions/checkout | |
- name: Setup Node | |
uses: Brightspace/third-party-actions@actions/setup-node | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Download Dependencies | |
run: npm ci | |
- name: Unit Tests | |
run: npm run test:unit | |
- name: Lint | |
run: npm run lint | |
- name: License Test | |
run: npm run license | |
Release: | |
if: ${{ needs.Setup-Env.outputs.isMain == 'true' }} | |
runs-on: ubuntu-latest | |
needs: [Setup-Env, Tests] | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: Brightspace/third-party-actions@actions/checkout | |
with: | |
persist-credentials: false | |
- name: Setup Node | |
uses: Brightspace/third-party-actions@actions/setup-node | |
with: | |
node-version-file: .nvmrc | |
- name: Semantic Release | |
uses: BrightspaceUI/actions/semantic-release@main | |
with: | |
DEFAULT_BRANCH: master | |
GITHUB_TOKEN: ${{ secrets.D2L_GITHUB_TOKEN }} | |
NPM: true | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |