Create ci.yml #19
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: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4.2.2 | |
| # - 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: setup-credentials | |
| run: | | |
| git config user.name "GitHub Actions Bot" | |
| git config user.email "<>" | |
| - name: setup-env | |
| run: make env | |
| - name: run-lint | |
| run: make lint | |
| - name: run-tests | |
| run: make test-all |