-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (42 loc) · 1.06 KB
/
ci.yaml
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
name: ci
on:
push:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: make test
shell: bash
action-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: setup fake buf
shell: bash
run: |
mkdir -p tmp/bin
cp test/buf.bash tmp/bin/buf
chmod +x tmp/bin/buf
echo "${PWD}/tmp/bin" >> "${GITHUB_PATH}"
- name: run action
uses: ./
with:
buf_token: fake-buf-token
input: path/to/input
env:
WANT_BUF_TOKEN: fake-buf-token
WANT_ARGS: push path/to/input --tag ${{ github.sha }}
- name: run action with draft
uses: ./
with:
buf_token: fake-buf-token
input: path/to/input
draft: true
env:
WANT_BUF_TOKEN: fake-buf-token
WANT_ARGS: push path/to/input --draft ${{ github.ref_name }}