Skip to content

chore(deps): lock file maintenance (#535) #1079

chore(deps): lock file maintenance (#535)

chore(deps): lock file maintenance (#535) #1079

Workflow file for this run

name: Build and Test
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out the source code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node.js environment
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: 'package.json'
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run all
test:
name: Test
runs-on: ubuntu-latest
permissions:
contents: read
if: |
github.event_name == 'workflow_dispatch' ||
github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && github.event.sender.login != 'dependabot[bot]' ||
github.event_name == 'push' && !contains(github.event.head_commit.message, '[ci skip]')
steps:
- name: Check out the source code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- id: action
uses: ./
with:
token: ${{ secrets.REPOSITORY_ACCESS_TOKEN }}
type: ci
payload: '{ "ref": "${{ github.ref }}", "sha": "${{ github.sha }}" }'