Switch to Ruby 4.0 #49
Workflow file for this run
This file contains hidden or 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
| # See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
| name: CI | |
| on: [push, pull_request] | |
| jobs: | |
| Build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Git Checkout | |
| uses: actions/checkout@v4 | |
| # the OBS build actually uses the image from YaST:Head, patch the config | |
| # to use the same base image also in the GitHub Action | |
| - name: Patch the Dockerfile | |
| run: sed -i 's@^FROM\\b.*$@FROM registry.opensuse.org/yast/head/images/opensuse/tumbleweed:latest@' package/Dockerfile | |
| - name: Build the Docker Image | |
| run: docker build -t yast-cpp package | |
| # check the CI script | |
| - name: Check | |
| run: docker run --rm yast-cpp shellcheck /usr/local/bin/yast-ci-cpp |