bambi6-service-postit

Simple Note-Taking A/D Service for BambiCTF6 in 2021
git clone https://git.sinitax.com/sinitax/bambi6-service-postit
Log | Files | Refs | README | LICENSE | sfeed.txt

enochecker_test.yml (1704B)


      1name: enochecker_test
      2
      3on:
      4  push:
      5    branches:
      6      - "main"
      7  pull_request:
      8    branches:
      9      - "main"
     10
     11jobs:
     12  lint:
     13    runs-on: ubuntu-latest
     14    steps:
     15      - uses: enowars/action-cleanup-runner@v1
     16      - uses: actions/checkout@v2
     17      - name: Set up Python 3.9
     18        uses: actions/setup-python@v2
     19        with:
     20          python-version: 3.9
     21      - name: Test checker style
     22        run: |
     23          cd checker
     24          sudo apt update
     25          DEBIAN_FRONTEND=noninteractive sudo apt-get install libmpfr-dev libmpc-dev
     26          pip install -r src/requirements.txt
     27          pip install -r dev-requirements.txt
     28          make lint
     29  build:
     30    runs-on: ubuntu-latest
     31    env:
     32      ENOCHECKER_TEST_CHECKER_ADDRESS: localhost
     33      ENOCHECKER_TEST_CHECKER_PORT: 9338
     34    steps:
     35      - uses: enowars/action-cleanup-runner@v1
     36      - uses: actions/checkout@v2
     37      - name: Set up Python 3.9
     38        uses: actions/setup-python@v2
     39        with:
     40          python-version: 3.9
     41      - name: Install enochecker_test
     42        run: |
     43          python -m pip install --upgrade pip
     44          pip install enochecker-test
     45      - name: Start service
     46        run: |
     47          cd service
     48          docker-compose up -d
     49      - name: Start checker
     50        run: |
     51          cd checker
     52          CI_RUNNER=1 docker-compose up -d
     53      - name: Obtain Docker host IP
     54        run: |
     55          echo "ENOCHECKER_TEST_SERVICE_ADDRESS=$(ip -4 address show dev eth0 | grep inet | awk '{ print $2 }' | sed 's|/.*$||')" >> $GITHUB_ENV
     56      - name: Run enochecker_test
     57        run: |
     58          enochecker_test
     59      - name: Dump docker logs on failure
     60        if: failure()
     61        uses: jwalton/gh-docker-logs@v1