2020-05-03 15:09:41 -04:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
2020-05-23 19:14:15 -04:00
|
|
|
schedule:
|
|
|
|
- cron: '0 10 * * *' # everyday at 10am
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- releases/v*
|
2020-05-03 15:09:41 -04:00
|
|
|
push:
|
|
|
|
branches:
|
2020-05-23 19:14:15 -04:00
|
|
|
- master
|
|
|
|
- releases/v*
|
2020-05-03 15:09:41 -04:00
|
|
|
|
|
|
|
jobs:
|
2020-05-18 11:18:07 -04:00
|
|
|
armored:
|
2020-05-03 15:35:54 -04:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- macOS-latest
|
2020-05-05 18:31:46 -04:00
|
|
|
- windows-latest
|
2020-05-03 15:09:41 -04:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2020-08-10 14:24:21 -04:00
|
|
|
uses: actions/checkout@v2.3.2
|
2020-05-12 14:18:51 -04:00
|
|
|
-
|
2020-05-12 14:48:02 -04:00
|
|
|
name: Get test key and passphrase
|
2020-08-28 16:32:56 -04:00
|
|
|
uses: actions/github-script@v3
|
2020-05-12 14:30:44 -04:00
|
|
|
id: test
|
2020-05-12 14:36:05 -04:00
|
|
|
with:
|
|
|
|
script: |
|
2020-05-12 14:37:28 -04:00
|
|
|
const fs = require('fs');
|
2020-05-12 14:36:05 -04:00
|
|
|
core.setOutput('pgp', fs.readFileSync('.github/test-key.pgp', {encoding: 'utf8'}));
|
|
|
|
core.setOutput('passphrase', fs.readFileSync('.github/test-key.pass', {encoding: 'utf8'}));
|
2020-05-03 15:09:41 -04:00
|
|
|
-
|
2020-05-18 11:18:07 -04:00
|
|
|
name: Import GPG
|
2020-05-07 14:46:52 -04:00
|
|
|
id: import_gpg
|
2020-05-03 15:09:41 -04:00
|
|
|
uses: ./
|
2020-05-04 14:59:11 -04:00
|
|
|
with:
|
2020-05-05 19:21:41 -04:00
|
|
|
git_user_signingkey: true
|
2020-05-05 19:15:33 -04:00
|
|
|
git_commit_gpgsign: true
|
|
|
|
git_tag_gpgsign: true
|
|
|
|
git_push_gpgsign: true
|
2020-05-03 15:09:41 -04:00
|
|
|
env:
|
2020-05-12 14:30:44 -04:00
|
|
|
GPG_PRIVATE_KEY: ${{ steps.test.outputs.pgp }}
|
|
|
|
PASSPHRASE: ${{ steps.test.outputs.passphrase }}
|
2020-05-07 14:46:52 -04:00
|
|
|
-
|
|
|
|
name: GPG user IDs
|
|
|
|
run: |
|
|
|
|
echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
|
|
|
|
echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
|
2020-05-12 14:48:02 -04:00
|
|
|
echo "name: ${{ steps.import_gpg.outputs.name }}"
|
2020-05-07 14:46:52 -04:00
|
|
|
echo "email: ${{ steps.import_gpg.outputs.email }}"
|
2020-05-18 11:18:07 -04:00
|
|
|
|
|
|
|
base64:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- macOS-latest
|
|
|
|
- windows-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2020-08-10 14:24:21 -04:00
|
|
|
uses: actions/checkout@v2.3.2
|
2020-05-18 11:15:05 -04:00
|
|
|
-
|
2020-05-18 11:18:07 -04:00
|
|
|
name: Get test key and passphrase
|
2020-08-28 16:32:56 -04:00
|
|
|
uses: actions/github-script@v3
|
2020-05-18 11:18:07 -04:00
|
|
|
id: test
|
|
|
|
with:
|
|
|
|
script: |
|
|
|
|
const fs = require('fs');
|
|
|
|
core.setOutput('pgp-base64', fs.readFileSync('.github/test-key-base64.pgp', {encoding: 'utf8'}));
|
|
|
|
core.setOutput('passphrase', fs.readFileSync('.github/test-key.pass', {encoding: 'utf8'}));
|
|
|
|
-
|
|
|
|
name: Import GPG
|
|
|
|
id: import_gpg
|
2020-05-18 11:15:05 -04:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
git_user_signingkey: true
|
|
|
|
git_commit_gpgsign: true
|
|
|
|
git_tag_gpgsign: true
|
|
|
|
git_push_gpgsign: true
|
|
|
|
env:
|
|
|
|
GPG_PRIVATE_KEY: ${{ steps.test.outputs.pgp-base64 }}
|
|
|
|
PASSPHRASE: ${{ steps.test.outputs.passphrase }}
|
|
|
|
-
|
|
|
|
name: GPG user IDs
|
|
|
|
run: |
|
2020-05-18 11:18:07 -04:00
|
|
|
echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
|
|
|
|
echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
|
|
|
|
echo "name: ${{ steps.import_gpg.outputs.name }}"
|
|
|
|
echo "email: ${{ steps.import_gpg.outputs.email }}"
|