Skip to content

Fix command execution in your_program.sh to redirect stderr to /dev/n… #196

Fix command execution in your_program.sh to redirect stderr to /dev/n…

Fix command execution in your_program.sh to redirect stderr to /dev/n… #196

Workflow file for this run

name: Test
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Fetch latest release of Kafka && extract it
run: |
wget --progress=dot:giga https://media.githubusercontent.com/media/codecrafters-io/build-your-own-kafka/main/kafka_2.13-4.0.0-SNAPSHOT.tgz
tar -xzf kafka_2.13-4.0.0-SNAPSHOT.tgz
sudo mv kafka_2.13-4.0.0-SNAPSHOT/ /usr/local/kafka-latest
export PATH=$PATH:/usr/local/kafka-latest/bin
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.9"
- name: Run tests up to 10 times and exit on first failure
run: |
for i in {1..10}; do
if ! make test; then
echo "Test failed on attempt $i"
exit 1
fi
done
echo "All tests passed successfully"
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.22.x
- uses: dominikh/[email protected]
with:
version: "2024.1"
install-go: false