Skip to content

WIP: Bj release cleanup #7

WIP: Bj release cleanup

WIP: Bj release cleanup #7

Workflow file for this run

name: Package Library
on:
push:
branches: [ main ]
pull_request:
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
version: [22, 20, 18]
os:
[sfdc-hk-ubuntu-latest, sfdc-hk-macos-latest, sfdc-hk-windows-latest]
name: Node ${{ matrix.version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4 # java required for testing with wiremock
with:
java-package: jre
java-version: "11"
distribution: "zulu"
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
cache: "npm"
- run: npm install
- run: npm run format:check
- run: npm run lint
- run: npm run test
- run: npm run build
- name: Upload artifacts
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, 'Merge pull request') && contains(github.event.head_commit.message, 'release')
uses: actions/upload-artifact@v4
with:
name: ${{ github.ref_name }}
path: dist/
retention-days: 90