-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.4 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
permissions: {}
on:
workflow_dispatch: {}
pull_request:
paths-ignore:
- "**.md"
- LICENSE
push:
paths-ignore:
- "**.md"
- LICENSE
jobs:
ubuntu:
strategy:
fail-fast: false
matrix:
include:
- container: alpine:latest
preinstall: apk add bash coreutils curl git jq
- container: centos:latest
preinstall: dnf -y --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos && dnf -y install git jq
- container: ubuntu:latest
preinstall: apt-get -y update && apt-get -y install curl git jq
runs-on: ubuntu-latest
container:
image: ${{ matrix.container }}
steps:
- name: Preinstall
run: ${{ matrix.preinstall }}
- name: Test plugin
uses: asdf-vm/actions/plugin-test@v1
with:
command: |
echo '${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}' | envsubst
env:
GITHUB_TOKEN: ${{ github.token }}
macos:
runs-on: macos-latest
steps:
- name: Preinstall
run: brew install jq
- name: Test plugin
uses: asdf-vm/actions/plugin-test@v1
with:
command: |
echo '${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}' | envsubst
env:
GITHUB_TOKEN: ${{ github.token }}