Add fixes for getIssuer and getSerial (#15) #233
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: "CI" | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test_deno: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
deno-version: ["v1.x"] | |
steps: | |
- name: Git Checkout Deno Module | |
uses: actions/checkout@v2 | |
- name: Use Deno Version ${{ matrix.deno-version }} | |
uses: denolib/setup-deno@v2 | |
with: | |
deno-version: ${{ matrix.deno-version }} | |
- name: Test Module | |
run: deno task build | |
test_node: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
node-version: [16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run build | |
- run: npm run report | |
- run: npm run codecov | |
release: | |
if: github.ref == 'refs/heads/master' && needs.test_node.result == 'success' && needs.test_deno.result == 'success' | |
needs: [test_node,test_deno] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '18.x' | |
- uses: denolib/setup-deno@v2 | |
with: | |
deno-version: '1.x' | |
- name: Get current package version | |
id: package_version | |
uses: martinbeentjes/[email protected] | |
- run: deno task build | |
- run: npm ci | |
- run: npm run build | |
- run: git config --global user.name "JamesCullum (Pseudonym)" | |
- run: git config --global user.email "https://mailhide.io/e/Wno7k" | |
- name: Check if tag already exists | |
id: tag_exists | |
uses: mukunku/[email protected] | |
with: | |
tag: "${{ steps.package_version.outputs.current-version}}" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: Git Auto Commit Deno Artifacts | |
if: steps.tag_exists.outputs.exists == 'false' | |
uses: stefanzweifel/[email protected] | |
with: | |
commit_message: "[skip_ci] v${{ steps.package_version.outputs.current-version}}: Build artifacts for Deno" | |
tagging_message: "${{ steps.package_version.outputs.current-version}}" | |
file_pattern: dist/*.js dist/*.cjs | |
- run: npm run docs | |
- run: npm run publish-docs | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
- uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ secrets.NPM_AUTH_TOKEN }} |