diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a362f49 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,47 @@ +name: Continuous Integration + +on: + push: + branches: + - "main" + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + os: [ubuntu] # centos + + steps: + - name: Check out the repository + uses: actions/checkout@v3 + + - name: Set up Docker + uses: docker/setup-buildx-action@v2 + + - name: Install Docker Compose + run: | + DOCKER_COMPOSE_VERSION="2.11.2" + sudo curl -L "https://github.com/docker/compose/releases/download/v$DOCKER_COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + sudo chmod +x /usr/local/bin/docker-compose + docker-compose --version + + - name: Install project + run: | + ./.ci/install.sh && \ + make gen-conf OS_CONTAINER=${{ matrix.os }} && \ + make install OS_CONTAINER=${{ matrix.os }} + + - name: Check version + run: .ci/check-version.sh + + - name: Test + run: make test + + - name: Finish + run: | + cat /tmp/krb5-test-${{ matrix.os }}.log && \ + ls -lR && \ + ./script/inspect.sh && \ + ./.ci/check-version.sh \ No newline at end of file diff --git a/.github/workflows/kerberos-docker.yml b/.github/workflows/kerberos-docker.yml deleted file mode 100644 index 4d5020e..0000000 --- a/.github/workflows/kerberos-docker.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Kerberos Docker - -on: - push: - branches: - - "master" - -env: - OS_CONTAINER: ubuntu - -jobs: - build: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest] - - steps: - - name: Check out repository code - uses: actions/checkout@v1 - - - name: Install docker - uses: docker-practice/actions-setup-docker@master - timeout-minutes: 12 - - - name: Install project - run: ./.ci/install.sh && make install OS_CONTAINER=${OS_CONTAINER} - - - name: Check version - run: .ci/check-version.sh - - - name: Test - run: make test - - - name: Finish - run: | - cat /tmp/krb5-test-${OS_CONTAINER}.log && \ - ls -lR && \ - ./script/inspect.sh && \ - ./.ci/check-version.sh - - - -