Skip to content

Commit 49b0684

Browse files
authored
Merge pull request #914 from input-output-hk/ci/update-gh-release-bot
ci: remove gpg passphrase
2 parents 6e50023 + df570c3 commit 49b0684

File tree

6 files changed

+121
-124
lines changed

6 files changed

+121
-124
lines changed

.github/workflows/continuous-integration-e2e.yaml

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -29,64 +29,64 @@ env:
2929

3030
on:
3131
pull_request:
32-
branches: [ "master" ]
32+
branches: ['master']
3333
push:
34-
branches: [ "master" ]
35-
tags: [ "*.*.*" ]
34+
branches: ['master']
35+
tags: ['*.*.*']
3636

3737
jobs:
3838
build_and_test:
3939
strategy:
4040
matrix:
41-
os: [ ubuntu-20.04 ]
41+
os: [ubuntu-20.04]
4242
runs-on: ${{ matrix.os }}
4343
steps:
44-
- name: 📥 Checkout repository
45-
uses: actions/checkout@v3
44+
- name: 📥 Checkout repository
45+
uses: actions/checkout@v3
4646

47-
- name: 🧰 Setup Node.js
48-
uses: actions/setup-node@v3
49-
with:
50-
node-version: 18.12.0
47+
- name: 🧰 Setup Node.js
48+
uses: actions/setup-node@v3
49+
with:
50+
node-version: 18.12.0
5151

52-
- name: 🔨 Build
53-
run: |
54-
yarn install --immutable --inline-builds
55-
yarn build
56-
docker build --no-cache .
52+
- name: 🔨 Build
53+
run: |
54+
yarn install --immutable --inline-builds
55+
yarn build
56+
docker build --no-cache .
5757
58-
- name: 🌐 Setup local test network
59-
working-directory: packages/e2e
60-
run: |
61-
yarn local-network:up -d
62-
env:
63-
CARDANO_NODE_CHAINDB_LOG_LEVEL: 'Warning'
64-
CARDANO_NODE_LOG_LEVEL: 'Warning'
65-
OGMIOS_PORT: '1340'
66-
OGMIOS_URL: 'ws://cardano-node-ogmios:1340'
67-
POSTGRES_PORT: '5435'
58+
- name: 🌐 Setup local test network
59+
working-directory: packages/e2e
60+
run: |
61+
yarn local-network:up -d
62+
env:
63+
CARDANO_NODE_CHAINDB_LOG_LEVEL: 'Warning'
64+
CARDANO_NODE_LOG_LEVEL: 'Warning'
65+
OGMIOS_PORT: '1340'
66+
OGMIOS_URL: 'ws://cardano-node-ogmios:1340'
67+
POSTGRES_PORT: '5435'
6868

69-
- name: Dump docker logs on failure
70-
if: failure()
71-
uses: jwalton/gh-docker-logs@v2
69+
- name: Dump docker logs on failure
70+
if: failure()
71+
uses: jwalton/gh-docker-logs@v2
7272

73-
- name: Wait for some epochs
74-
run: |
75-
yarn workspace @cardano-sdk/e2e wait-for-network
76-
env:
77-
DB_SYNC_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/cexplorer'
73+
- name: Wait for some epochs
74+
run: |
75+
yarn workspace @cardano-sdk/e2e wait-for-network
76+
env:
77+
DB_SYNC_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/cexplorer'
7878

79-
- name: 🔬 Test - e2e - wallet
80-
run: |
81-
yarn workspace @cardano-sdk/e2e test:wallet
82-
yarn workspace @cardano-sdk/e2e test:providers
83-
yarn workspace @cardano-sdk/e2e test:projection
84-
yarn workspace @cardano-sdk/e2e test:pg-boss
85-
env:
86-
STAKE_POOL_PROVIDER_URL: 'http://localhost:4000/'
79+
- name: 🔬 Test - e2e - wallet
80+
run: |
81+
yarn workspace @cardano-sdk/e2e test:wallet
82+
yarn workspace @cardano-sdk/e2e test:providers
83+
yarn workspace @cardano-sdk/e2e test:projection
84+
yarn workspace @cardano-sdk/e2e test:pg-boss
85+
env:
86+
STAKE_POOL_PROVIDER_URL: 'http://localhost:4000/'
8787

88-
- name: 🔬 Test - e2e - wallet - typeorm stake pool provider
89-
run: |
90-
yarn workspace @cardano-sdk/e2e test:providers -t StakePoolProvider
91-
env:
92-
STAKE_POOL_PROVIDER_URL: 'http://localhost:4010/'
88+
- name: 🔬 Test - e2e - wallet - typeorm stake pool provider
89+
run: |
90+
yarn workspace @cardano-sdk/e2e test:providers -t StakePoolProvider
91+
env:
92+
STAKE_POOL_PROVIDER_URL: 'http://localhost:4010/'

.github/workflows/continuous-integration-unit-tests.yaml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,45 @@ env:
66

77
on:
88
pull_request:
9-
branches: [ "master" ]
9+
branches: ['master']
1010
push:
11-
branches: [ "master" ]
12-
tags: [ "*.*.*" ]
11+
branches: ['master']
12+
tags: ['*.*.*']
1313

1414
jobs:
1515
build_and_test:
1616
strategy:
1717
matrix:
18-
os: [ ubuntu-20.04 ]
18+
os: [ubuntu-20.04]
1919
runs-on: ${{ matrix.os }}
2020
steps:
21-
- name: 📥 Checkout repository
22-
uses: actions/checkout@v3
23-
24-
- name: 🧰 Setup Node.js
25-
uses: actions/setup-node@v3
26-
with:
27-
node-version: 18.12.0
28-
29-
- name: 🔨 Build
30-
run: |
31-
yarn install --immutable --inline-builds
32-
yarn build
33-
34-
- name: 🔨 Generated files
35-
run: |
36-
if [ ! -z "$(git status --porcelain)" ] ; then git status ; echo "The PR is missing some generated file" ; exit 1 ; fi
37-
yarn lint
38-
env:
39-
NODE_OPTIONS: "--max_old_space_size=8192"
40-
41-
- name: 🔃 Check for circular dependencies
42-
run: |
43-
yarn circular-deps:check
44-
45-
- name: 🔬 Test
46-
run: |
47-
yarn test:build:verify
48-
yarn test --forceExit
49-
env:
50-
NODE_OPTIONS: "--max_old_space_size=8192"
21+
- name: 📥 Checkout repository
22+
uses: actions/checkout@v3
23+
24+
- name: 🧰 Setup Node.js
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: 18.12.0
28+
29+
- name: 🔨 Build
30+
run: |
31+
yarn install --immutable --inline-builds
32+
yarn build
33+
34+
- name: 🔨 Generated files
35+
run: |
36+
if [ ! -z "$(git status --porcelain)" ] ; then git status ; echo "The PR is missing some generated file" ; exit 1 ; fi
37+
yarn lint
38+
env:
39+
NODE_OPTIONS: '--max_old_space_size=8192'
40+
41+
- name: 🔃 Check for circular dependencies
42+
run: |
43+
yarn circular-deps:check
44+
45+
- name: 🔬 Test
46+
run: |
47+
yarn test:build:verify
48+
yarn test --forceExit
49+
env:
50+
NODE_OPTIONS: '--max_old_space_size=8192'

.github/workflows/git-checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v3
1111
- name: Block Fixup Commit Merge
12-
uses: 13rac1/[email protected]
12+
uses: 13rac1/[email protected]

.github/workflows/k6-perf-test-cloud.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
workflow_dispatch:
44

55
jobs:
6-
76
wallet-creation:
87
runs-on: ubuntu-latest
98
env:
@@ -32,4 +31,4 @@ jobs:
3231
filename: ./packages/e2e/test/k6/wallet-restoration.test.js
3332
flags: --vus 3 --duration 10s
3433
cloud: true
35-
token: ${{ secrets.K6_CLOUD_API_TOKEN }}
34+
token: ${{ secrets.K6_CLOUD_API_TOKEN }}

.github/workflows/k6-perf-test.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
workflow_dispatch:
44

55
jobs:
6-
76
wallet-creation:
87
runs-on: ubuntu-latest
98
env:
@@ -290,4 +289,4 @@ jobs:
290289
uses: actions/upload-artifact@v3
291290
with:
292291
name: k6-report
293-
path: utxo_stats-results.json
292+
path: utxo_stats-results.json

.github/workflows/release.yaml

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,48 +7,47 @@ jobs:
77
publish:
88
strategy:
99
matrix:
10-
os: [ ubuntu-20.04 ]
10+
os: [ubuntu-20.04]
1111
runs-on: ${{ matrix.os }}
1212
steps:
13-
- name: 📥 Checkout repository
14-
uses: actions/checkout@v3
15-
with:
16-
# Fetch all history for all tags and branches
17-
fetch-depth: 0
18-
ref: master
19-
token: ${{ secrets.BOT_GH_TOKEN }}
13+
- name: 📥 Checkout repository
14+
uses: actions/checkout@v3
15+
with:
16+
# Fetch all history for all tags and branches
17+
fetch-depth: 0
18+
ref: master
19+
token: ${{ secrets.BOT_GH_TOKEN }}
2020

21-
- name: 🧰 Setup Node.js
22-
uses: actions/setup-node@v1
23-
with:
24-
node-version: 18.12.0
25-
registry-url: 'https://registry.npmjs.org'
21+
- name: 🧰 Setup Node.js
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: 18.12.0
25+
registry-url: 'https://registry.npmjs.org'
2626

27-
- name: Import bot's GPG key for signing commits
28-
id: import-gpg
29-
uses: crazy-max/ghaction-import-gpg@v5
30-
with:
31-
gpg_private_key: ${{ secrets.BOT_GPG_KEY }}
32-
passphrase: ${{ secrets.BOT_GPG_PASSPHRASE }}
33-
git_config_global: true
34-
git_user_signingkey: true
35-
git_commit_gpgsign: true
36-
37-
- name: 💽 Install dependencies
38-
run: |
39-
yarn install --immutable --inline-builds --mode=skip-build
40-
env:
41-
YARN_ENABLE_IMMUTABLE_INSTALLS: false
27+
- name: Import bot's GPG key for signing commits
28+
id: import-gpg
29+
uses: crazy-max/ghaction-import-gpg@v5
30+
with:
31+
gpg_private_key: ${{ secrets.BOT_GPG_KEY }}
32+
git_config_global: true
33+
git_user_signingkey: true
34+
git_commit_gpgsign: true
4235

43-
- name: 🔨 Build
44-
run: |
45-
yarn build
36+
- name: 💽 Install dependencies
37+
run: |
38+
yarn install --immutable --inline-builds --mode=skip-build
39+
env:
40+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
4641

47-
- name: Publish
48-
run: |
49-
if [ $RELEASE_MODE = "stable" ]; then yarn publish:stable; else yarn publish:rc; fi
50-
env:
51-
NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
52-
# Used for making a GitHub Release
53-
GH_TOKEN: ${{ secrets.BOT_GH_TOKEN }}
54-
RELEASE_MODE: ${{ vars.RELEASE_MODE }}
42+
- name: 🔨 Build
43+
run: |
44+
yarn build
45+
46+
- name: Publish
47+
run: |
48+
if [ $RELEASE_MODE = "stable" ]; then yarn publish:stable; else yarn publish:rc; fi
49+
env:
50+
NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
51+
# Used for making a GitHub Release
52+
GH_TOKEN: ${{ secrets.BOT_GH_TOKEN }}
53+
RELEASE_MODE: ${{ vars.RELEASE_MODE }}

0 commit comments

Comments
 (0)