Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bury to Spydus; Luci tests require VPN #36

Merged
merged 5 commits into from
Apr 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,16 @@ jobs:
- uses: actions/checkout@v2
- name: Install modules
run: npm install
- name: Install OpenVPN
run: |
curl ${{ secrets.OVPN_URL }} --output config.ovpn --silent
sudo apt update
sudo apt install -y openvpn openvpn-systemd-resolved
- name: Connect to VPN
uses: "kota65535/github-openvpn-connect-action@v2"
with:
config_file: config.ovpn
username: ${{ secrets.OVPN_USERNAME }}
password: ${{ secrets.OVPN_PASSWORD }}
- name: Run tests
run: npm run test-ci
run: npm run test-ci
8 changes: 2 additions & 6 deletions data/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,8 @@
{
"Name": "Bury",
"Code": "E08000002",
"Type": "enterprise",
"Available": [
"In stock"
],
"TitleDetailUrl": "search/detailnonmodal.detail.detailavailabilityaccordions:lookuptitleinfo/ent:[ITEMID]/ILS/0/true/true",
"Url": "https://bury.ent.sirsidynix.net.uk/client/en_GB/default/"
"Type": "spydus",
"Url": "https://bury.spydus.co.uk/"
},
{
"Name": "Caerphilly",
Expand Down
1 change: 0 additions & 1 deletion tests/enterprise.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ test('E08000032 - Bradford', async () => await index.runTest('Bradford'), 300000
test('E09000005 - Brent', async () => await index.runTest('Brent'), 300000);
test('W06000013 - Pen-y-bont ar Ogwr - Bridgend', async () => await index.runTest('Pen-y-bont ar Ogwr - Bridgend'), 300000);
test('E06000023 - Bristol City', async () => await index.runTest('Bristol City'), 300000);
test('E08000002 - Bury', async () => await index.runTest('Bury'), 300000);
test('W06000018 - Caerphilly', async () => await index.runTest('Caerphilly'), 300000);
test('W06000015 - Caerdydd - Cardiff', async () => await index.runTest('Caerdydd - Cardiff'), 300000);
test('W06000010 - Sir Gaerfyrddin - Carmarthenshire', async () => await index.runTest('Sir Gaerfyrddin - Carmarthenshire'), 300000);
Expand Down
1 change: 1 addition & 0 deletions tests/spydus.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ test('E06000008 - Blackburn with Darwen', async () => await index.runTest('Black
test('E08000001 - Bolton', async () => await index.runTest('Bolton'), 300000);
test('E06000043 - Brighton and Hove', async () => await index.runTest('Brighton and Hove'), 300000);
test('E10000002 - Buckinghamshire', async () => await index.runTest('Buckinghamshire'), 300000);
test('E08000002 - Bury', async () => await index.runTest('Bury'), 300000);
test('E08000033 - Calderdale', async () => await index.runTest('Calderdale'), 300000);
test('E10000003 - Cambridgeshire', async () => await index.runTest('Cambridgeshire'), 300000);
test('E09000007 - Camden', async () => await index.runTest('Camden'), 300000);
Expand Down