Skip to content

Update actions dependencies #105

Update actions dependencies

Update actions dependencies #105

Workflow file for this run

name: ci
on:
push:
branches:
- main
paths-ignore:
- 'action-surefire-report/**'
pull_request:
paths-ignore:
- 'action-surefire-report/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: |
block-commits/package-lock.json
github-app-token/yarn.lock
slash-command-dispatch/package-lock.json
- name: Build and test block-commits
working-directory: block-commits
run: |
npm ci
npm run build --if-present
npm test
- name: Build and test github-app-token
working-directory: github-app-token
run: |
yarn install --frozen-lockfile
yarn run yarn-deduplicate --fail
yarn run build
- name: Build and test slash-command-dispatch
working-directory: slash-command-dispatch
run: |
npm ci
npm run build
- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol github-app-token/dist/ | wc -l)" -gt "0" ] ||
[ "$(git diff --ignore-space-at-eol slash-command-dispatch/dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
id: diff
# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v4
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
path: |
github-app-token/dist/
slash-command-dispatch/dist/