Add test workflow
This commit is contained in:
6
.github/workflows/dockerimage.yml
vendored
6
.github/workflows/dockerimage.yml
vendored
@@ -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
20
.github/workflows/test.yml
vendored
Normal 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
6
testdata/testfile
vendored
Normal 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.
|
||||||
|
|
||||||
Reference in New Issue
Block a user