-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (65 loc) · 3.74 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Tests
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
# Purely testing keys that have no access to JP systems etc.
PUBLIC: -----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoZ203HV7SOVSu0U9aJa2\nJjAPgyroUH76rKdnPZCgUDKhDcFmNdYC76VXAUL9e9ajVOxIZyBi4FIuZlw2sHMs\nJwXQigxl6B5ZnBn71rkIyXSlvobY3TaTM8of64Wu/1HUgVIueogANTNslF9Kf7nF\ns1HOWWY/H5iVgRPrIXZJ/AjkPCYwlBLUqU58rvogBuaFD1Q14cHJlaxtj/HM1GZS\n4q0Dg6M5EAwZxRtHImliYbIy8zjq2yhY7lKrMdXfK224Ovc1xrY4M875OPz3ppn5\nuChRQqWviFkbCShs83JV6ncfmCmxQRObYQLkDwSAcgPUIWaNM6TUZQwtpZ+1Magi\njwIDAQAB\n-----END PUBLIC KEY-----
PRIVATE: -----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQChnbTcdXtI5VK7\nRT1olrYmMA+DKuhQfvqsp2c9kKBQMqENwWY11gLvpVcBQv171qNU7EhnIGLgUi5m\nXDawcywnBdCKDGXoHlmcGfvWuQjJdKW+htjdNpMzyh/rha7/UdSBUi56iAA1M2yU\nX0p/ucWzUc5ZZj8fmJWBE+shdkn8COQ8JjCUEtSpTnyu+iAG5oUPVDXhwcmVrG2P\n8czUZlLirQODozkQDBnFG0ciaWJhsjLzOOrbKFjuUqsx1d8rbbg69zXGtjgzzvk4\n/P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F7KqtD0laEWaWu9Vt/dPGXBfpSkZ0rc86YB1srL5mTwPKNqWi42uy\n40NLkJ7mmsrjeTOplc8Eh+rjjbweGYRJf7g3CkArNQKBgHosHrZdUYm6OU0JqfC0\nmdhfx3lx51CxGFH/WhhTxngr1EeQOZg5la5MQXOsW4XAWj91uW5nLSPD7yGQH/HM\n7ef20OXlTVdaJEfzf3wc1ZszqyxD0h9J83zxA18sdYIiraMjFf0TJN9sp+n+Kayl\nStjA0osTStTg0tthBjBmDe7L\n-----END PRIVATE KEY-----
COUNTRY_NAME: UK
STATE_OR_PROVINCE_NAME: SCOTLAND
LOCALITY_NAME: Glasgow
ORGANIZATION_NAME: Org
COMMON_NAME: HELLO
DNS_NAME: WORLD
permissions:
contents: read
jobs:
test-python:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./python/sample-authentication-code
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
cd tests
pytest
test-go:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./go/sample-authentication-code/pkg/samples
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ">=1.19.0"
- run: go test
test-java:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./java/sample-authentication-code
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
- name: Build with Maven
run: mvn --batch-mode --update-snapshots package