Commit bd05286d authored by Grant's avatar Grant
Browse files

run as user

parent ab691f5f
Loading
Loading
Loading
Loading
Loading
+13 −7
Original line number Diff line number Diff line
@@ -24,14 +24,20 @@
  before_script:
    - apk add --no-cache openssl openssh
    - apk add --no-cache chromium nss freetype harfbuzz ca-certificates ttf-freefont
    - su - node
    - corepack enable && corepack prepare
    - yarn
    - npx -w backend prisma migrate deploy
    - npx -w backend prisma generate
    - chown -R node .
    - |
      sudo -i -u node sh << EOF
      corepack enable && corepack prepare
      yarn
      npx -w backend prisma migrate deploy
      npx -w backend prisma generate
      EOF
  script:
    - whoami
    - yarn workspace @fediverse-auth/backend run test
    - |
      sudo -i -u node sh << EOF
      whoami
      yarn workspace @fediverse-auth/backend run test
      EOF

mr test federation:
  when: manual