generated from exercism/generic-analyzer
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (39 loc) · 1.06 KB
/
ci.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
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
name: Tests
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4
with:
install: true
- name: Build Docker image and store in cache
uses: docker/build-push-action@a254f8ca60a858f3136a2f1f23a60969f2c402dd
with:
context: .
push: false
load: true
tags: exercism/crystal-analyzer
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run Tests in Docker
run: bin/run-tests-in-docker.sh
verify-templates:
name: Check Json files
runs-on: ubuntu-22.04
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Run check_json.cr
run: crystal ./bin/check_json.cr