ci: fix using npm run build-wasm

Newer npm seems to invoke the command without the current user
privileges. However, Go already initializes its cache using root.

Change-Id: I23b32ca3bbd7db06515c2af86b1bb5adc8e38a8f
This commit is contained in:
Egon Elbre 2021-10-14 17:29:45 +03:00
parent c54bcd63a1
commit 8f4550d621
2 changed files with 10 additions and 2 deletions

View File

@ -94,7 +94,7 @@ pipeline {
steps {
dir('web/satellite') {
sh 'npm ci --prefer-offline --no-audit'
sh 'npm run wasm-dev'
sh './scripts/build-wasm.sh'
sh 'npm run build'
}
}

View File

@ -23,7 +23,15 @@ const projectsApi = new ProjectsApiMock();
projectsApi.setMockLimits(projectLimits);
const projectsModule = makeProjectsModule(projectsApi);
const store = new Vuex.Store({ modules: { projectsModule }});
const store = new Vuex.Store({
modules: {
projectsModule,
usersModule: {
state: {
user: { paidTier: false },
}
}
}});
const project = new Project('id', 'test', 'test', 'test', 'ownedId', false);
describe('EditProjectDetails.vue', () => {