Skip to content

Commit

Permalink
Merge pull request #36 from cpwood/main
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveBathnes authored Apr 8, 2023
2 parents 3c39ea0 + c9980c7 commit 484ddba
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
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

0 comments on commit 484ddba

Please sign in to comment.