Skip to content

Commit 720f1f1

Browse files
authored
Add workflows for prettier and tagging #MAJOR (#3)
* Add workflows for prettier and tagging #MAJOR * Alter workflow to include shellcheck * Remove erroneous paste
1 parent fd158f3 commit 720f1f1

File tree

3 files changed

+41
-12
lines changed

3 files changed

+41
-12
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/master.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
on:
3+
# Trigger the workflow on push or pull request,
4+
# but only for the master branch
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
jobs:
12+
base:
13+
runs-on: ubuntu-latest
14+
container:
15+
image: "python:3.8.3"
16+
name: "Base pipeline"
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: "Pre-commit checks"
20+
run: |
21+
pip install pre-commit
22+
pre-commit run --all-files --show-diff-on-failure --color=always
23+
- name: shellcheck
24+
uses: ludeeus/action-shellcheck@0.1.0
25+
bumpAndTag:
26+
runs-on: ubuntu-latest
27+
name: "Bump and Tag"
28+
needs: [base]
29+
if: github.ref == 'refs/heads/master'
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: "Bump version and push tag"
33+
uses: anothrNick/github-tag-action@1b82315fa74a0572aa0bc1a96b859c57fc26e531
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
WITH_V: false

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
repos:
2+
- repo: https://github.com/prettier/prettier
3+
rev: "2.0.5"
4+
hooks:
5+
- id: prettier

0 commit comments

Comments
 (0)