Create ci.yml #26
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
| name: devicecode-ci | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4.2.2 | |
| with: | |
| submodules: recursive | |
| token: ${{ secrets.DEVICECODE_TOKEN }} | |
| # - name: setup-devcontainer | |
| # uses: devcontainers/ci@v0.3.1900000328 | |
| # with: | |
| # runCmd: . .devcontainer/postCreateCommand.sh && make all | |
| - name: install-luajit | |
| uses: leafo/gh-actions-lua@v10.0.0 | |
| with: | |
| luaVersion: "luajit-openresty" | |
| - name: install-luarocks | |
| uses: leafo/gh-actions-luarocks@v4.3.0 | |
| - name: install-luacheck | |
| run: luarocks install luacheck | |
| - name: install-bit32 | |
| run: luarocks install bit32 | |
| - name: install-cqueues | |
| run: luarocks install cqueues | |
| - name: install-http | |
| run: luarocks install http | |
| - name: install-luaposix | |
| run: luarocks install luaposix | |
| - name: setup-env | |
| run: make env | |
| - name: run-lint | |
| run: make lint | |
| - name: run-tests | |
| if: always() | |
| run: make test-all |