-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.16 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
name: Tests
on:
pull_request:
push:
branches:
- main
jobs:
kitchen_tests:
timeout-minutes: 10
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Build docker image and run kitchen specs + codecov within it
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# See https://docs.codecov.io/docs/testing-with-docker
run: |
./docker/build --ci
CI_ENV=`bash <(curl -s https://codecov.io/env)` ./docker/ci_kitchen
recipes_tests:
timeout-minutes: 10
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Build docker image and run recipes specs within it
run: |
./docker/build --ci
./docker/ci_recipes