Skip to content

Commit

Permalink
chore(ci): rename workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rpidanny committed Dec 22, 2023
1 parent 84cbd16 commit 0dec17f
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 2019 - On Push (python)
name: 2019 - Tests (python)

on:
push:
Expand All @@ -7,6 +7,7 @@ on:
- .github/workflows/2019*
env:
PYTHON_VERSION: 3.9
YEAR: 2019

jobs:
test:
Expand All @@ -23,14 +24,14 @@ jobs:

- name: Install dependencies
run: pip install -r requirements.txt -r requirements_dev.txt
working-directory: ./2019
working-directory: ./${{ env.YEAR }}

- name: Lint
run: |
isort --check-only .
black --check .
working-directory: ./2019
working-directory: ./${{ env.YEAR }}

- name: Test
run: ./run-tests.sh
working-directory: ./2019
working-directory: ./${{ env.YEAR }}
31 changes: 31 additions & 0 deletions .github/workflows/2022-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 2022 - Tests (JS)

on:
push:
paths:
- 2022/**
- .github/workflows/2022*

env:
NODE_VERSION: 18.x
YEAR: 2022

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
cache-dependency-path: ./${{ env.YEAR }}/package-lock.json

- run: npm ci
working-directory: ./${{ env.YEAR }}

- run: npm test
working-directory: ./${{ env.YEAR }}
31 changes: 0 additions & 31 deletions .github/workflows/2022-on-push.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 2023 - On Push (TS)
name: 2023 - Tests (TS)

on:
push:
Expand All @@ -7,12 +7,12 @@ on:
- .github/workflows/2023*
env:
NODE_VERSION: 18.x
YEAR: 2022

jobs:
test:
name: Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

Expand All @@ -21,13 +21,13 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
cache-dependency-path: ./2023/package-lock.json
cache-dependency-path: ./${{ env.YEAR }}/package-lock.json

- run: npm ci
working-directory: ./2023
working-directory: ./${{ env.YEAR }}

- run: npm run lint
working-directory: ./2023
working-directory: ./${{ env.YEAR }}

- run: npm test
working-directory: ./2023
working-directory: ./${{ env.YEAR }}

0 comments on commit 0dec17f

Please sign in to comment.