forked from zammad/zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.21 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
pull_request
jobs:
CI:
runs-on: ubuntu-latest
container:
image: zammad/zammad-ci:latest
services:
postgresql:
image: postgres:10
env:
POSTGRES_USER: zammad
POSTGRES_PASSWORD: zammad
env:
RAILS_ENV: test
Z_LOCALES: "en-us:de-de"
# Temporary switch to enable the mobile front end for testing.
ENABLE_EXPERIMENTAL_MOBILE_FRONTEND: 'true'
# Compile assets only once.
CI_SKIP_ASSETS_PRECOMPILE: 'true'
# Avoid unnecessary DB resets.
CI_SKIP_DB_RESET: 'true'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
with:
path: .yarn/cache
key: ${{ runner.os }}-cache-npm-${{ hashFiles('yarn.lock') }}
- name: Cache Rubygems
id: cache-bundler
uses: actions/cache@v3
with:
path: vendor/ruby
key: ${{ runner.os }}-cache-bundler-${{ hashFiles('Gemfile.lock') }}
- name: Pre
run: .github/workflows/ci/pre.sh
- name: Lint
run: .github/workflows/ci/lint.sh
- name: Test
run: .github/workflows/ci/test.sh