Merge pull request #60 from sashaodessa/main #236
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: SmartIR Build and Test CI | |
| on: ["push", "pull_request"] | |
| jobs: | |
| smartir-build-test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| container: | |
| image: smartir/smart-ir-builder:main | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: "false" | |
| # Prerequisite | |
| - name: Code format check | |
| working-directory: ./ir_cli | |
| run: | | |
| rustup default 1.70 | |
| make fmt-check | |
| shell: bash | |
| - name: e2e tests | |
| working-directory: ./ir_cli | |
| shell: bash | |
| run: | | |
| rustup default 1.70 | |
| source /opt/rh/gcc-toolset-11/enable | |
| make test |