Repository navigation
<TBBAS-2554> Add reusable CI workflows for SimpleDeviceModule #210
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
| name: Build and Test simple device module with latest openDAQ release | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| jobs: | |
| test-asset: | |
| permissions: | |
| contents: read | |
| actions: read | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| platform-alias: "ubuntu22.04-x86_64" | |
| - os: windows-latest | |
| platform-alias: "win64" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout simple device module repo | |
| uses: actions/checkout@v4 | |
| # - name: Compose openDAQ framework filename | |
| # id: compose-filename | |
| # uses: openDAQ/actions/framework-compose-filename@jira/TBBAS-2680-opendaq-gh-actions-github-api-wrapper-unit-tests | |
| # with: | |
| # platform: ${{ matrix.platform-alias }} | |
| # - name: Download openDAQ framework asset | |
| # uses: robinraju/release-downloader@v1 | |
| # with: | |
| # repository: openDAQ/openDAQ | |
| # latest: true | |
| # fileName: ${{ steps.compose-filename.outputs.filename }} | |
| # out-file-path: downloads | |
| # - name: Install openDAQ framework asset | |
| # uses: openDAQ/actions/framework-install@jira/TBBAS-2680-opendaq-gh-actions-github-api-wrapper-unit-tests | |
| # with: | |
| # framework-filename: ${{ github.workspace }}/downloads/${{ steps.compose-filename.outputs.filename }} | |
| - name: Install openDAQ framework | |
| uses: openDAQ/actions/install-framework@jira/TBBAS-2871-download-and-install-sdk | |
| - name: Build and test simple device module | |
| uses: ./.github/actions/module-build-test |