Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'pull_reqest' workflow and 'test' steps #681

Merged
merged 11 commits into from
May 14, 2024
13 changes: 9 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Docker Image CI
on:
push:
branches:
- '**'
- 'master'
- 'en'
tags:
- 'v*'
workflow_dispatch:
Expand All @@ -28,10 +29,14 @@ jobs:
run: |
npm version --no-git-tag-version $(node -p "require('./package.json').version")-${GITHUB_SHA::8}

- name: Install dependencies
run: npm ci

- name: Test
run: npm run test

- name: Build
run: |
npm ci
npm run build
run: npm run build

#- name: Sentry
# env:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Pull request check
aeifn marked this conversation as resolved.
Show resolved Hide resolved

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.10.0

- name: Install dependencies
run: npm ci

- name: Test
run: npm run test

- name: Build
aeifn marked this conversation as resolved.
Show resolved Hide resolved
run: npm run build
1 change: 0 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ module.exports = function (grunt) {
'exec:testNodeVersion:.nvmrc',
'exec:testNodeVersionDockerfile:./.docker/Dockerfile',
'exec:testNodeVersionDockerfile:./.docker/backend.Dockerfile',
'exec:testNodeVersionDockerfile:./.docker/frontend.Dockerfile',
'eslint',
'stylelint',
'exec:jest',
Expand Down