chore: distributing the disclaimer for the workflow folder #31
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
| # This workflow is going to be used during the development phase of the project | |
| name: Library development workflow | |
| on: | |
| push: | |
| branches: | |
| - 'main' # runs the workflow, once new changes have been integrated to main | |
| - 'main/**' # runs the workflow, once new changes have been integrated to a sub-branch of main | |
| pull_request: | |
| branches: | |
| - 'main' # run workflow in the scope of pull requests towards main | |
| workflow_call: | |
| secrets: | |
| APAX_TOKEN: | |
| required: true | |
| inputs: | |
| ref: | |
| required: true | |
| type: string | |
| version: | |
| required: true | |
| type: string | |
| permissions: | |
| contents: read # required for checkout | |
| packages: read # required for pulling the container | |
| actions: write # required for artifact uploading | |
| jobs: | |
| build-and-test: | |
| name: Build and Test | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: ghcr.io/simatic-ax/ci-images/apax-ci-image:3.5.0 | |
| credentials: | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ inputs.ref != '' && inputs.ref || github.ref }} | |
| - name: Login to required registries | |
| uses: simatic-ax/actions/apax-login@v3 | |
| with: | |
| apax-token: ${{ secrets.APAX_TOKEN }} | |
| registries: | | |
| https://npm.pkg.github.com/,${{ secrets.GITHUB_TOKEN }} | |
| - name: Install dependencies | |
| uses: simatic-ax/actions/apax-install@v3 | |
| with: | |
| immutable: true |