Skip to content

Commit

Permalink
ci: 🎡 pass env var to ci unit
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria committed Dec 30, 2023
1 parent ad1d798 commit ac63dd4
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 16.16
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 16.6
node-version: 16.16
- name: Install dependencies
run: npm ci
- name: Linting
run: npm run lint
- name: Unit tests
run: npm run test:unit:ci
env:
PUBLIC_BUCKET_URL: https://storage.googleapis.com/enki-website
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.14.2
v16.16
25 changes: 17 additions & 8 deletions tests/mocks/categories/GET.mock
Original file line number Diff line number Diff line change
Expand Up @@ -8,55 +8,64 @@ Access-Control-Allow-Origin: *
"Name": "Books",
"ParentId": null,
"Children": [],
"NominalCode": ""
"NominalCode": "",
"Description": "1876023"

},
{
"Id": 2,
"Name": "Lion",
"ParentId": null,
"Children": [],
"NominalCode": ""
"NominalCode": "",
"Description": "2"
},
{
"Id": 3,
"Name": "Zebra",
"ParentId": null,
"Children": [],
"NominalCode": ""
"NominalCode": "",
"Description": "3"
},
{
"Id": 4,
"Name": "Hippopotamus",
"ParentId": null,
"Children": [],
"NominalCode": ""
"NominalCode": "",
"Description": "4"
},
{
"Id": 5,
"Name": "Water Buffalo",
"ParentId": null,
"Children": [],
"NominalCode": ""
"NominalCode": "",
"Description": "5"
},
{
"Id": 6,
"Name": "Giraffe",
"ParentId": null,
"Children": [],
"NominalCode": ""
"NominalCode": "",
"Description": "6"
},
{
"Id": 7,
"Name": "Cheetah",
"ParentId": null,
"Children": [],
"NominalCode": ""
"NominalCode": "",
"Description": "7"
},
{
"Id": 8,
"Name": "Crocodile",
"ParentId": null,
"Children": [],
"NominalCode": ""
"NominalCode": "",
"Description": "8"
}
]
8 changes: 8 additions & 0 deletions tests/mocks/fixtures/categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,54 +5,62 @@ export const mockCategories = [
ParentId: null,
Children: [],
NominalCode: "",
Description: "1876023",
},
{
Id: 2,
Name: "Lion",
ParentId: null,
Children: [],
NominalCode: "",
Description: "2",
},
{
Id: 3,
Name: "Zebra",
ParentId: null,
Children: [],
NominalCode: "",
Description: "3",
},
{
Id: 4,
Name: "Hippopotamus",
ParentId: null,
Children: [],
NominalCode: "",
Description: "4",
},
{
Id: 5,
Name: "Water Buffalo",
ParentId: null,
Children: [],
NominalCode: "",
Description: "5",
},
{
Id: 6,
Name: "Giraffe",
ParentId: null,
Children: [],
NominalCode: "",
Description: "6",
},
{
Id: 7,
Name: "Cheetah",
ParentId: null,
Children: [],
NominalCode: "",
Description: "7",
},
{
Id: 8,
Name: "Crocodile",
ParentId: null,
Children: [],
NominalCode: "",
Description: "8",
},
];

0 comments on commit ac63dd4

Please sign in to comment.