Skip to content

Commit 6105568

Browse files
authored
Merge pull request #7 from jasonad123/testing/op
testing: implement 1p env loading
2 parents fc94f57 + b069051 commit 6105568

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.github/workflows/test-coverage.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,28 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v6
20+
21+
- name: Configure 1Password
22+
uses: 1Password/load-secrets-action/configure@v3.1.0
23+
with:
24+
service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
25+
26+
- name: Load Mobility Database Credentials
27+
id: load-mobdb-creds
28+
uses: 1Password/load-secrets-action@v3.1.0
29+
with:
30+
export-env: true
31+
env:
32+
MOBDB_REFRESH_TOKEN: "op://Developer/Mobility Database/credential"
33+
34+
- name: Verify API credentials are available
35+
run: |
36+
if [ -z "$MOBDB_REFRESH_TOKEN" ]; then
37+
echo "ERROR: MOBDB_REFRESH_TOKEN not set"
38+
exit 1
39+
fi
40+
echo "✓ MOBDB_REFRESH_TOKEN is set"
41+
shell: bash
2042

2143
- uses: r-lib/actions/setup-r@v2
2244
with:
@@ -38,6 +60,7 @@ jobs:
3860
covr::to_cobertura(cov)
3961
shell: Rscript {0}
4062

63+
4164
- uses: codecov/codecov-action@v5
4265
with:
4366
# Fail if error if not on PR, or if on PR and token is given

renovate.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended",
5+
":semanticCommits"
6+
],
7+
"prHourlyLimit": 4,
8+
"minimumReleaseAge" : "7 days",
9+
"packageRules": [
10+
{
11+
"description": "Group all non-major dependencies together",
12+
"matchUpdateTypes": ["minor", "patch"],
13+
"groupName": "all non-major dependencies",
14+
"groupSlug": "all-minor-patch",
15+
"automerge": false
16+
},
17+
{
18+
"description": "Group GitHub Actions updates",
19+
"matchManagers": ["github-actions"],
20+
"groupName": "GitHub Actions",
21+
"schedule": ["* 0-3 * * 1"],
22+
"pinDigests": true
23+
},
24+
{
25+
"description": "Separate major updates",
26+
"matchUpdateTypes": ["major"],
27+
"labels": ["breaking-change"]
28+
}
29+
]
30+
}

0 commit comments

Comments
 (0)