-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 986 Bytes
/
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:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: "0 6 * * 1"
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
crystal:
- latest
- nightly
- 1.0.0
runs-on: ${{ matrix.os }}
container: crystallang/crystal:${{ matrix.crystal }}-alpine
services:
# Label used to access the service container
snmpd:
# Docker Hub image
image: tandrup/snmpsim
# Not sure how to configure this correctly...
# env:
# EXTRA_FLAGS="--v3-user=usr-md5-none --v3-auth-key=authkey1 --v3-auth-proto=MD5"
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: shards install --ignore-crystal-version
- name: Lint
run: ./bin/ameba
- name: Format
run: crystal tool format --check
- name: Run tests
run: crystal spec -v --error-trace
env:
TEST_SNMP_SERVER: snmpd