Merge pull request #151 from codecrafters-io/CC-1249-release #711
Workflow file for this run
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: Test | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.21.x | |
# Required for tests | |
- name: Install Redis | |
run: |- | |
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg | |
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list | |
sudo apt-get update | |
sudo apt-get install redis | |
- name: "Stop redis service" | |
run: sudo service redis-server stop | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.x" # Version range or exact version of a Python version to use, using SemVer's version range syntax | |
- run: make test | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.21.x | |
- uses: dominikh/staticcheck-action@v1.3.0 | |
with: | |
version: "2023.1" | |
install-go: false |