Set up continuous integration #18
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: continuous integration | |
on: [push, pull_request] | |
env: | |
HCI_ROOT_DIR: ./ | |
permissions: | |
contents: read | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go 1.22 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.x" | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: install Pipenv | |
run: pip install pipenv --user | |
- name: install dependencies | |
run: pipenv sync --dev # Installs all deps, including dev deps, from Pipfile.lock. | |
- name: format | |
run: pipenv run invoke fmt | |
- name: lint | |
run: pipenv run invoke lint | |
- name: check types | |
run: pipenv run invoke build | |
- name: run tests | |
run: pipenv run invoke test |