-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (43 loc) · 1.15 KB
/
tests.yml
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/CD workflow
on: [pull_request]
jobs:
rubocop:
name: Code style suggestions
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Prepare Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.4.6
bundler-cache: true
- name: Rubocop report
env:
FORCE_COLOR: 1
run: bundle exec rubocop --color --fail-fast
exporter-tests:
name: Exporter tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Prepare Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.4.6
bundler-cache: true
- name: Exporter tests
run: |
sudo ./scripts/install-deps.sh > /dev/null
bundle exec ruby test/exporter_test.rb
docker-build-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.4.6
bundler-cache: true
- name: 'Docker Build'
run: docker build . -t lib-mapknitter-exporter:latest