-
Notifications
You must be signed in to change notification settings - Fork 19
/
ci.yml.example
59 lines (54 loc) · 1.53 KB
/
ci.yml.example
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
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
on:
push:
branches: '*'
tags: v*
pull_request:
branches:
- master
jobs:
test: # make sure the action works on a clean machine without building
name: ${{ matrix.os.name }} ${{ matrix.os.version }}
runs-on: ${{ matrix.os.host }}
strategy:
fail-fast: false
matrix:
os:
- name: FreeBSD
version: '12.2'
host: ubuntu-latest
workDirectory: /home/runner/work/action/action
uname:
hardware: amd64
release: 12.2-RELEASE
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- run: |
sudo apt update
sudo apt install -y dosfstools rsync
mkdir -p ${{ matrix.os.workDirectory }}
mkdir -p /home/runner/work
touch ${{ matrix.os.workDirectory }}/foo.txt
- name: ${{ matrix.os.name }}
uses: ./
env:
FOO: A
BAR: B
with:
environment_variables: FOO BAR
operating_system: ${{ matrix.os.name }}
version: '${{ matrix.os.version }}'
run: |
uname -a
echo $SHELL
pwd
ls -lah
whoami
env | sort
[ "`uname -s`" = '${{ matrix.os.name }}' ]
[ "`uname -r`" = '${{ matrix.os.uname.release || matrix.os.version }}' ]
[ "`uname -m`" = '${{ matrix.os.uname.hardware }}' ]
[ "`pwd`" = '${{ matrix.os.workDirectory }}' ]