Skip to content

Commit 6628edb

Browse files
authored
Bump actions, fix typos (#23)
* Bump actions, fix typos * Remove true string check
1 parent 90f96b1 commit 6628edb

File tree

2 files changed

+84
-85
lines changed

2 files changed

+84
-85
lines changed

django-check/action.yaml

+78-78
Original file line numberDiff line numberDiff line change
@@ -2,86 +2,86 @@ name: "Django Check Composite"
22
description: "Checks django as a composite action"
33

44
inputs:
5-
# Mandatory inputs
6-
projectName:
7-
required: true
8-
description: "Name of project"
9-
# Optional finetuning inputs
10-
path:
11-
required: False
12-
description: "path"
13-
default: .
14-
pythonVersion:
15-
required: False
16-
description: "Python version to use"
17-
default: 3.8-buster
18-
# Linting config
19-
flake:
20-
required: False
21-
description: "whether to use flake for linting"
22-
default: "true"
23-
black:
24-
required: False
25-
description: "whether to use black for linting"
26-
default: "true"
27-
ruff:
28-
required: False
29-
description: "whether to use ruff for linting"
30-
default: "false"
31-
# Dependency manager config
32-
dependencyManager:
33-
required: False
34-
description: "Dependency manager to use (e.g., pipenv, poetry)"
35-
default: 'pipenv'
5+
# Mandatory inputs
6+
projectName:
7+
required: true
8+
description: "Name of project"
9+
# Optional finetuning inputs
10+
path:
11+
required: false
12+
description: "path"
13+
default: .
14+
pythonVersion:
15+
required: false
16+
description: "Python version to use"
17+
default: 3.8-buster
18+
# Linting config
19+
flake:
20+
required: false
21+
description: "whether to use flake for linting"
22+
default: "true"
23+
black:
24+
required: false
25+
description: "whether to use black for linting"
26+
default: "true"
27+
ruff:
28+
required: false
29+
description: "whether to use ruff for linting"
30+
default: "false"
31+
# Dependency manager config
32+
dependencyManager:
33+
required: false
34+
description: "Dependency manager to use (e.g., pipenv, poetry)"
35+
default: "pipenv"
3636

3737
runs:
3838
using: "composite"
3939
steps:
40-
- uses: actions/checkout@v2
41-
- name: Cache
42-
uses: actions/cache@v2
43-
with:
44-
path: ~/.local/share/virtualenvs
45-
key: v0-${{ hashFiles('${{ inputs.path }}/Pipfile.lock') }}
46-
- name: Install Dependencies (pipenv)
47-
shell: bash
48-
continue-on-error: true
49-
run: |-
50-
cd ${{ inputs.path }}
51-
pip install pipenv
52-
pipenv install --deploy --dev
53-
if: ${{ inputs.dependencyManager == 'pipenv' }}
54-
- name: Install Poetry
55-
uses: snok/install-poetry@v1
56-
if: ${{ inputs.dependencyManager == 'poetry' }}
57-
- name: Install Dependencies (poetry)
58-
shell: bash
59-
continue-on-error: true
60-
run: poetry install --no-root
61-
if: ${{ inputs.dependencyManager == 'poetry' }}
62-
- name: Test (run in parallel)
63-
shell: bash
64-
run: |-
65-
cd ${{ inputs.path }}
66-
${{ inputs.dependencyManager }} run coverage run --concurrency=multiprocessing manage.py test --settings=${{ inputs.projectName }}.settings.ci --parallel
67-
${{ inputs.dependencyManager }} run coverage combine
68-
- name: Lint (flake8)
69-
shell: bash
70-
run: |-
71-
cd ${{ inputs.path }}
72-
${{ inputs.dependencyManager }} run flake8 .
73-
if: ${{ inputs.flake }}
74-
- name: Lint (black)
75-
shell: bash
76-
run: |-
77-
cd ${{ inputs.path }}
78-
${{ inputs.dependencyManager }} run black --check . || ${{ inputs.dependencyManager }} run black --diff .
79-
if: ${{ inputs.black }}
80-
- name: Lint (ruff)
81-
shell: bash
82-
run: |-
83-
cd ${{ inputs.path }}
84-
${{ inputs.dependencyManager }} run ruff check . && ${{ inputs.dependencyManager }} run ruff format --check . || ${{ inputs.dependencyManager }} run ruff format --diff .
85-
if: ${{ inputs.ruff }}
40+
- uses: actions/checkout@v4
41+
- name: Cache
42+
uses: actions/cache@v4
43+
with:
44+
path: ~/.local/share/virtualenvs
45+
key: v0-${{ hashFiles('${{ inputs.path }}/Pipfile.lock') }}
46+
- name: Install Dependencies (pipenv)
47+
shell: bash
48+
continue-on-error: true
49+
run: |-
50+
cd ${{ inputs.path }}
51+
pip install pipenv
52+
pipenv install --deploy --dev
53+
if: ${{ inputs.dependencyManager == 'pipenv' }}
54+
- name: Install Poetry
55+
uses: snok/install-poetry@v1.3
56+
if: ${{ inputs.dependencyManager == 'poetry' }}
57+
- name: Install Dependencies (poetry)
58+
shell: bash
59+
continue-on-error: true
60+
run: poetry install --no-root
61+
if: ${{ inputs.dependencyManager == 'poetry' }}
62+
- name: Test (run in parallel)
63+
shell: bash
64+
run: |-
65+
cd ${{ inputs.path }}
66+
${{ inputs.dependencyManager }} run coverage run --concurrency=multiprocessing manage.py test --settings=${{ inputs.projectName }}.settings.ci --parallel
67+
${{ inputs.dependencyManager }} run coverage combine
68+
- name: Lint (flake8)
69+
shell: bash
70+
run: |-
71+
cd ${{ inputs.path }}
72+
${{ inputs.dependencyManager }} run flake8 .
73+
if: ${{ inputs.flake }}
74+
- name: Lint (black)
75+
shell: bash
76+
run: |-
77+
cd ${{ inputs.path }}
78+
${{ inputs.dependencyManager }} run black --check . || ${{ inputs.dependencyManager }} run black --diff .
79+
if: ${{ inputs.black }}
80+
- name: Lint (ruff)
81+
shell: bash
82+
run: |-
83+
cd ${{ inputs.path }}
84+
${{ inputs.dependencyManager }} run ruff check . && ${{ inputs.dependencyManager }} run ruff format --check . || ${{ inputs.dependencyManager }} run ruff format --diff .
85+
if: ${{ inputs.ruff }}
8686
container:
87-
image: python:${{ inputs.pythonVersion }}
87+
image: python:${{ inputs.pythonVersion }}

react-check/action.yaml

+6-7
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,28 @@ description: "Checks and runs tests for react project"
33

44
inputs:
55
# Path input is only required if building a project with front and backends
6-
76
path:
8-
required: False
7+
required: false
98
description: "Path to project root"
109
default: .
1110

1211
nodeVersion:
13-
required: False
12+
required: false
1413
description: "Node version to use"
1514
default: 14.17.0
1615

1716
runs:
1817
using: composite
1918

2019
steps:
21-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2221
- name: Setup Node ${{ inputs.nodeVersion }}
23-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v4
2423
with:
2524
node-version: ${{ inputs.nodeVersion }}
2625
cache: "yarn"
2726
- name: Cache
28-
uses: actions/cache@v2
27+
uses: actions/cache@v4
2928
with:
3029
path: "**/node_modules"
3130
key: v0-${{ hashFiles('${{ inputs.path }}/yarn.lock') }}
@@ -52,6 +51,6 @@ runs:
5251
run: |-
5352
ROOT=$(pwd)
5453
cd ${{ inputs.path }}
55-
yarn run codecov -p $ROOT -F frtype=local,src=/tmp/.buildx-cacheontend
54+
yarn run codecov -p $ROOT -F frtype=local,src=/tmp/.buildx-cache
5655
# container:
5756
# image: node:${{ inputs.nodeVersion }}

0 commit comments

Comments
 (0)