chore: remove global versioning from workflows #451
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
getPackages: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ env.matrix }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- id: set-matrix | |
run: echo "matrix=$(python3 ./scripts/get_packages.py)" >> $GITHUB_ENV | |
- name: Read matrix into env.matrix | |
run: echo ${{ env.matrix }} | |
build: | |
runs-on: ubuntu-latest | |
needs: | |
- getPackages | |
strategy: | |
matrix: ${{fromJSON(needs.getPackages.outputs.matrix)}} | |
defaults: | |
run: | |
working-directory: ${{ matrix.package }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Setup Node.js | |
uses: actions/setup-node@master | |
with: | |
node-version: 'v18.16.0' | |
- name: Install poetry | |
run: curl -sSL https://install.python-poetry.org | python3 - | |
- name: Install dependencies | |
run: poetry install | |
- name: Plugin Codegen | |
run: yarn codegen | |
if: contains(matrix.package, 'plugins') | |
- name: Config Bundle Codegen | |
run: yarn codegen | |
if: contains(matrix.package, 'config-bundles') | |
- name: Typecheck | |
run: poetry run tox -e typecheck | |
- name: Lint | |
run: poetry run tox -e lint | |
- name: Security | |
run: poetry run tox -e secure | |
- name: Test | |
run: poetry run tox |