Skip to content

Commit

Permalink
fix(#635): update upload-artifact GH action to version 4 (#636)
Browse files Browse the repository at this point in the history
* fix(#635): update upload-artifact GH action to version 4

* fix e2e tests

---------

Co-authored-by: m5r <[email protected]>
  • Loading branch information
sugat009 and m5r authored Oct 9, 2024
1 parent 8e61099 commit bafd6e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: npm ci and test
run: npm ci && npm test
- name: Archive Results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Coverage Report ${{ matrix.node-version }}
path: |
Expand Down
4 changes: 3 additions & 1 deletion test/e2e/edit-app-settings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const {

describe('edit-app-settings', () => {
const projectName = DEFAULT_PROJECT_NAME;
const findLanguage = (settingsLanguages, locale) => settingsLanguages.find(language => language.locale === locale);

before(async () => {
await initProject(projectName);
Expand All @@ -24,7 +25,8 @@ describe('edit-app-settings', () => {
it('disables a language, recompile, and push app settings', async () => {
const url = await getProjectUrl(projectName);
const baseSettings = await request.get({ url: `${url}/api/v1/settings`, json: true });
baseSettings.languages.forEach(language => expect(language.enabled).to.be.true);
expect(findLanguage(baseSettings.languages, 'en').enabled).to.be.true;
expect(findLanguage(baseSettings.languages, 'fr').enabled).to.be.true;
expect(baseSettings.locale).to.equal('en');
expect(baseSettings.locale_outgoing).to.equal('en');

Expand Down

0 comments on commit bafd6e3

Please sign in to comment.