forked from jandelgado/lede-dockerbuilder
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (37 loc) · 943 Bytes
/
test.yml
File metadata and controls
38 lines (37 loc) · 943 Bytes
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
name: test
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
name: linting
steps:
- name: Checkout
uses: actions/checkout@v2
- name: shellcheck
run: shellcheck builder.sh
test:
runs-on: ubuntu-latest
name: test
strategy:
matrix:
example: ["x86_64", "nanopi_r4s"]
option: ["--skip-sudo", "--dockerless"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: install podman
run: |
sudo apt-get -y update
sudo apt-get -y install podman
- name: test build example
run: |
mkdir -p output
time ./builder.sh build-docker-image \
example-${{ matrix.example }}.conf ${{ matrix.option }} &&\
time ./builder.sh build \
example-${{ matrix.example }}.conf ${{ matrix.option }}