Bump braces and jest #22
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: PR Tests | |
on: | |
pull_request: | |
jobs: | |
notarize-defaults-test: | |
runs-on: ${{ matrix.os }} | |
env: | |
term: xterm | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-13 | |
node-version: | |
- '20' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install node ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: Install dependencies | |
run: npm clean-install --prefer-offline --frozen-lockfile | |
- name: Package node binary | |
run: npm run build | |
- name: Sign | |
uses: lando/code-sign-action@v2 | |
id: code-sign-action | |
with: | |
file: "@lando/notarize-action" | |
certificate-data: ${{ secrets.APPLE_CERT_DATA }} | |
certificate-password: ${{ secrets.APPLE_CERT_PASSWORD }} | |
apple-product-id: dev.lando.notarize-action | |
apple-team-id: FY8GAUX282 | |
options: --options runtime --entitlements entitlements.xml | |
- name: Notarize | |
uses: ./ | |
id: notarize-sign-action | |
with: | |
appstore-connect-username: ${{ secrets.APPLE_NOTARY_USER }} | |
appstore-connect-password: ${{ secrets.APPLE_NOTARY_PASSWORD }} | |
appstore-connect-team-id: FY8GAUX282 | |
primary-bundle-id: dev.lando.notarize-action | |
product-path: ${{ steps.code-sign-action.outputs.file }} | |
verbose: true | |
- name: "TEST: should notarize the file at input.product-path" | |
if: always() | |
run: codesign -vvvv -R="notarized" --check-notarization ${{ steps.notarize-sign-action.outputs.product-path }} | |
shell: bash | |
notarize-tool-tests: | |
runs-on: ${{ matrix.os }} | |
env: | |
term: xterm | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-13 | |
node-version: | |
- '20' | |
tool: | |
# altool is deprecated now and it throws an error if you try to use it | |
# - altool | |
- notarytool | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install node ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: Install dependencies | |
run: npm clean-install --prefer-offline --frozen-lockfile | |
- name: Package node binary | |
run: npm run build | |
- name: Sign | |
uses: lando/code-sign-action@v2 | |
id: code-sign-action | |
with: | |
file: "@lando/notarize-action" | |
certificate-data: ${{ secrets.APPLE_CERT_DATA }} | |
certificate-password: ${{ secrets.APPLE_CERT_PASSWORD }} | |
apple-product-id: dev.lando.notarize-action | |
apple-team-id: FY8GAUX282 | |
options: --options runtime --entitlements entitlements.xml | |
- name: Notarize | |
uses: ./ | |
id: notarize-sign-action | |
with: | |
appstore-connect-username: ${{ secrets.APPLE_NOTARY_USER }} | |
appstore-connect-password: ${{ secrets.APPLE_NOTARY_PASSWORD }} | |
appstore-connect-team-id: FY8GAUX282 | |
primary-bundle-id: dev.lando.notarize-action | |
product-path: ${{ steps.code-sign-action.outputs.file }} | |
tool: ${{ matrix.tool }} | |
verbose: true | |
- name: "TEST: should notarize the file at input.product-path" | |
if: always() | |
run: codesign -vvvv -R="notarized" --check-notarization ${{ steps.notarize-sign-action.outputs.product-path }} | |
shell: bash |