Add test workflow

This commit is contained in:
haya14busa
2020-01-19 04:25:18 +00:00
parent 90969dc026
commit 77c6f9c9e1
3 changed files with 31 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
name: Docker Image CI name: Docker Image CI
on: [push] on:
push:
branches:
- master
pull_request:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest

20
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Test
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
id: autobump
with:
file: testdata/testfile
version_name: REVIEWDOG_VERSION
repo: reviewdog/reviewdog
- name: Check diff
run: git diff

6
testdata/testfile vendored Normal file
View File

@@ -0,0 +1,6 @@
This is test file.
REVIEWDOG_VERSION=0.1.0
The above version should be updated to the latest version with this action.