Files
apple-code-sign-action/.github/workflows/ci.yml
dependabot[bot] 9dedebbe2d build(deps): bump actions/setup-node from 4 to 6
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-05 08:05:41 +00:00

76 lines
1.9 KiB
YAML

name: Continuous Integration
on: [pull_request, push]
jobs:
test-javascript:
name: JavaScript Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v6
with:
node-version: 20
cache: npm
- name: Install Dependencies
id: npm-ci
run: npm ci
- name: Check Format
id: npm-format-check
run: npm run format:check
- name: Lint
id: npm-lint
run: npm run lint
#- name: Test
# id: npm-ci-test
# run: npm run ci-test
test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Fetch rcodesign
run: |
curl -L https://github.com/indygreg/apple-platform-rs/releases/download/apple-codesign%2F0.26.0/apple-codesign-0.26.0-x86_64-unknown-linux-musl.tar.gz \
| tar --strip-components=1 -xvzf -
./rcodesign debug-create-macho macho-binary
rm rcodesign COPYING
- name: Write PEM key to file
env:
PEM_KEY: ${{ secrets.DEVELOPER_ID_APPLICATION_PEM_KEY }}
run: |
echo "$PEM_KEY" | tr ' ' '\n' > key.pem
- name: Test Sign PEM Source
uses: ./
with:
input_path: macho-binary
output_path: macho-binary-pem
pem_file: |
key.pem
certs/self-signed-developer-id-application.pem
- name: Test Sign P12 Source
uses: ./
with:
input_path: macho-binary
output_path: macho-binary-p12
p12_file: certs/self-signed-developer-id-application.p12
p12_password: ${{ secrets.DEVELOPER_ID_APPLICATION_PASSWORD }}