11
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2026-04-01 15:26:54 +00:00

test: add tests for the action

This commit is contained in:
Wagner Santos 2019-12-09 20:05:44 -03:00
parent be6d99998b
commit eac721a186
19 changed files with 4568 additions and 192 deletions

14
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,14 @@
name: CI
on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- run: npm install
- run: npm test --ci

View file

@ -1,5 +1,5 @@
name: Commitlint
on: [pull_request]
on: [push, pull_request]
jobs:
commitlint:
@ -22,14 +22,3 @@ jobs:
- uses: ./
with:
configFile: './.commitlintrc.yml'
commitlint-with-lerna-scopes:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v1
- run: sed -i -E "s/([']docker:.+)/Dockerfile/" ./action.yml
- run: echo -n '' > .dockerignore
- uses: ./
with:
configFile: './.commitlintrc-with-lerna-scopes.yml'

View file

@ -1,13 +0,0 @@
name: Test
on: [push]
jobs:
commitlint:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v1
- run: sed -i -E "s/([']docker:.+)/Dockerfile/" ./action.yml
- run: echo -n '' > .dockerignore
- uses: ./