Skip to content

Commit 56cf775

Browse files
author
BFT\a.rogalskii
committed
Added info on workflows
Updates on github-actions
1 parent 81733e1 commit 56cf775

File tree

9 files changed

+156
-36
lines changed

9 files changed

+156
-36
lines changed

.github/codeql/codeql-config.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: "CodeQL config"
2+
3+
paths-ignore:
4+
- '**/config/**'
5+
- '**/vendor/**'
6+
- '**/reports/**'
7+
- '**/scripts/**'

.github/workflows/codeql-analysis.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '43 1 * * 2'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
language: [ 'javascript' ]
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v2
24+
25+
- name: Initialize CodeQL
26+
uses: github/codeql-action/init@v1
27+
with:
28+
languages: ${{ matrix.language }}
29+
config-file: ./.github/codeql/codeql-config.yml
30+
queries: security-extended
31+
setup-python-dependencies: false
32+
33+
- name: Perform CodeQL Analysis
34+
uses: github/codeql-action/analyze@v1

.github/workflows/enforce-labels.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ name: Enforce PR labels for release drafter
33
on:
44
pull_request:
55
types: [ labeled, unlabeled, opened, edited, synchronize ]
6+
67
jobs:
78
enforce-label:
89
runs-on: ubuntu-latest
910
steps:
1011
- uses: yogevbd/[email protected]
1112
with:
12-
REQUIRED_LABELS_ANY: "bug,enhancement,internal,no-changelog"
13+
REQUIRED_LABELS_ANY: "bug,enhancement,internal,no-changelog,sync"
1314
REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['bug','enhancement','internal','no-changelog'] for the PR"

.github/workflows/lint.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Run linters
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
7+
env:
8+
MAX_LINE_LENGTH: 110
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
submodules: true
17+
fetch-depth: 1
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: 3.9
23+
architecture: x64
24+
25+
- name: Install flake8
26+
run: |
27+
pip install flake8 pycodestyle
28+
29+
- name: Lint with flake8
30+
run: |
31+
# one pass for show-stopper syntax errors or undefined names
32+
flake8 . --count --show-source --statistics
33+
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude ./ckan/include/rjsmin.py,./contrib/cookiecutter/*
34+
# one pass for small stylistic things
35+
flake8 . --count --max-line-length="$MAX_LINE_LENGTH" --statistics
36+
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

.github/workflows/mkdocs.yml

+19-3
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,35 @@ on:
55
branches:
66
- master
77

8+
env:
9+
PYTHONIOENCODING: utf-8
10+
PYTHONLEGACYWINDOWSSTDIO: utf-8
11+
USE_COLOR: False
12+
813
jobs:
914
deploy:
1015
runs-on: ubuntu-18.04
1116
steps:
1217
- uses: actions/checkout@v2
18+
with:
19+
submodules: true
20+
fetch-depth: 1
1321

1422
- name: Setup Python 3.9
1523
uses: actions/setup-python@v2
1624
with:
1725
python-version: '3.9'
26+
architecture: x64
1827

1928
- name: Upgrade pip
2029
run: |
2130
# install pip=>20.1 to use "pip cache dir"
2231
python3 -m pip install --upgrade pip --quiet
32+
2333
- name: Get pip cache dir
2434
id: pip-cache
25-
run: echo "::set-output name=dir::$(pip cache dir)"
35+
run: |
36+
echo "::set-output name=dir::$(pip cache dir)"
2637
2738
- name: Cache dependencies
2839
uses: actions/cache@v2
@@ -35,8 +46,13 @@ jobs:
3546
- name: Install dependencies
3647
run: python3 -m pip install mkdocs mkdocs-material fontawesome_markdown mkdocs-redirects markdown-include --quiet
3748

38-
- name: Run mkdocs
39-
run: mkdocs build --verbose
49+
- name: Build mkdocs
50+
run: mkdocs build
51+
52+
- name: Directory listing for debugging
53+
run: |
54+
pwd
55+
ls
4056
4157
- name: Deploy
4258
uses: peaceiris/actions-gh-pages@v3

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [0.0.0](https://github.com/AlexRogalskiy/java-patterns/compare/v1.0.1...v0.0.0) (2021-07-01)
1+
# [0.0.0](https://github.com/AlexRogalskiy/java-patterns/compare/v1.0.1...v0.0.0) (2021-07-02)
22

33

44

Dockerfile

+13-4
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,21 @@ LABEL "com.github.name"="$NAME"
3535
LABEL "com.github.description"="Java Design Patterns"
3636

3737
## Setting environment variables
38-
ENV APP_DIR $APP_DIR
39-
ENV DATA_DIR $DATA_DIR
40-
ENV LC_ALL $LC_ALL
41-
ENV LANG $LC_ALL
4238
ENV PYTHON_VERSION $PYTHON_VERSION
4339

40+
ENV APP_DIR=$APP_DIR \
41+
DATA_DIR=$DATA_DIR
42+
43+
# System-level base config
44+
ENV TZ=UTC \
45+
LANGUAGE=en_US:en \
46+
LC_ALL=$LC_ALL \
47+
LANG=$LC_ALL \
48+
PYTHONIOENCODING=UTF-8 \
49+
PYTHONUNBUFFERED=1 \
50+
DEBIAN_FRONTEND=noninteractive \
51+
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1
52+
4453
## Mounting volumes
4554
VOLUME ["$APP_DIR"]
4655

README.md

+29-27
Original file line numberDiff line numberDiff line change
@@ -43,33 +43,35 @@
4343
## 🎹 *Table of contents*
4444

4545
<!--ts-->
46-
* [Java Design Patterns](#java-design-patterns)
47-
* [<em>Table of contents</em>](#-table-of-contents)
48-
* [<em>Summary</em>](#-summary)
49-
* [<em>Documentation</em>](#-documentation)
50-
* [<em>Statistics</em>](#-statistics)
51-
* [<em>Versioning</em>](#-versioning)
52-
* [<em>Authors</em>](#-authors)
53-
* [<em>Contributing</em>](#-contributing)
54-
* [<em>Visitor stats</em>](#-visitor-stats)
55-
* [<em>Licensing</em>](#-licensing)
56-
* [<em>Development Support</em>](#-development-support)
57-
* [<em>Acknowledgement</em>](#-acknowledgement)
58-
* [<em>OpenGraph Card</em>](#-opengraph-card)
59-
* [<em>Feeds and Podcasts</em>](#-feeds-and-podcasts)
60-
* [<em>Reddit posts</em>](#reddit-posts)
61-
* [<em>InfoWorld posts</em>](#infoworld-posts)
62-
* [<em>Let's talk posts</em>](#lets-talk-posts)
63-
* [<em>Random thoughts posts</em>](#random-thoughts-posts)
64-
* [<em>Better code posts</em>](#better-code-posts)
65-
* [<em>Inside Java posts</em>](#inside-java-posts)
66-
* [<em>Java programmer posts</em>](#java-programmer-posts)
67-
* [<em>Dreamix posts</em>](#dreamix-posts)
68-
* [<em>Plumbr posts</em>](#plumbr-posts)
69-
* [<em>Thorben Janssen posts</em>](#thorben-janssen-posts)
70-
* [<em>Redhat posts</em>](#redhat-posts)
71-
* [<em>JavaCodeGeeks posts</em>](#javacodegeeks-posts)
72-
* [<em>DevCases posts</em>](#devcases-posts)
46+
47+
- [Java Design Patterns](#java-design-patterns)
48+
- [<em>Table of contents</em>](#-table-of-contents)
49+
- [<em>Summary</em>](#-summary)
50+
- [<em>Documentation</em>](#-documentation)
51+
- [<em>Statistics</em>](#-statistics)
52+
- [<em>Versioning</em>](#-versioning)
53+
- [<em>Authors</em>](#-authors)
54+
- [<em>Contributing</em>](#-contributing)
55+
- [<em>Visitor stats</em>](#-visitor-stats)
56+
- [<em>Licensing</em>](#-licensing)
57+
- [<em>Development Support</em>](#-development-support)
58+
- [<em>Acknowledgement</em>](#-acknowledgement)
59+
- [<em>OpenGraph Card</em>](#-opengraph-card)
60+
- [<em>Feeds and Podcasts</em>](#-feeds-and-podcasts)
61+
- [<em>Reddit posts</em>](#reddit-posts)
62+
- [<em>InfoWorld posts</em>](#infoworld-posts)
63+
- [<em>Let's talk posts</em>](#lets-talk-posts)
64+
- [<em>Random thoughts posts</em>](#random-thoughts-posts)
65+
- [<em>Better code posts</em>](#better-code-posts)
66+
- [<em>Inside Java posts</em>](#inside-java-posts)
67+
- [<em>Java programmer posts</em>](#java-programmer-posts)
68+
- [<em>Dreamix posts</em>](#dreamix-posts)
69+
- [<em>Plumbr posts</em>](#plumbr-posts)
70+
- [<em>Thorben Janssen posts</em>](#thorben-janssen-posts)
71+
- [<em>Redhat posts</em>](#redhat-posts)
72+
- [<em>JavaCodeGeeks posts</em>](#javacodegeeks-posts)
73+
- [<em>DevCases posts</em>](#devcases-posts)
74+
7375
<!--te-->
7476

7577
## *Summary*

lgtm.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
extraction:
2+
javascript:
3+
index:
4+
exclude:
5+
- .dependabot
6+
- .github
7+
- .husky
8+
- config
9+
- docs
10+
- images
11+
- node_modules
12+
- reports
13+
- scripts
14+
filters:
15+
- exclude: '**/*.bundle.js'

0 commit comments

Comments
 (0)