mediawiki-skins-Citizen/.github/workflows/grunt.yml

42 lines
920 B
YAML
Raw Normal View History

2019-12-26 07:30:32 +00:00
name: Grunt
2019-12-26 06:52:37 +00:00
2019-12-26 10:29:46 +00:00
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
2019-12-26 06:52:37 +00:00
jobs:
build:
runs-on: ubuntu-latest
steps:
2020-01-06 19:31:07 +00:00
- uses: actions/checkout@v2
2019-12-26 06:52:37 +00:00
- name: Install dependencies
run: |
2019-12-26 07:35:51 +00:00
npm install --save-dev
2019-12-26 07:10:53 +00:00
2020-01-06 19:51:34 +00:00
#- name: Generate documentation
# run: npm run doc
2019-12-29 00:05:24 +00:00
2019-12-29 00:10:17 +00:00
- name: Run stylelint autofix
2019-12-29 00:05:24 +00:00
run: npm run fix
2019-12-26 07:20:26 +00:00
2019-12-26 17:55:09 +00:00
- name: Run Grunt test
run: npm run test
2020-01-06 19:31:07 +00:00
- name: Push the changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@users.noreply.github.com"
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git add .
git commit -am "Github CI lint - eslint/stylelint" || echo "No changes to commit"
2020-01-06 19:31:07 +00:00
git push