chore(deps): update actions/upload-artifact action to v4 #211
Workflow file for this run
This file contains 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: Test | |
on: | |
push: | |
branches: [ main, pts ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
luarocks: | |
name: Test LuaRocks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 | |
- uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 | |
- name: Setup | |
run: | | |
luarocks install --only-deps du-mocks-scm-0.rockspec | |
- name: Verify LuaRocks config | |
run: luarocks make | |
ldoc: | |
name: Test LDoc | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 | |
- uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 | |
- name: Setup | |
run: | | |
luarocks install --only-deps du-mocks-scm-0.rockspec | |
luarocks install ldoc | |
- name: Verify codex builds cleanly | |
run: ldoc . --fatalwarnings | |
- name: Verify PTS codex builds cleanly | |
run: ldoc -c config-pts.ld . --fatalwarnings | |
unit-test: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# luaVersion: [ "5.3" ] | |
luaVersion: [ "5.3", "5.4" ] | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 | |
with: | |
luaVersion: ${{ matrix.luaVersion }} | |
- uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 | |
- name: Setup | |
run: | | |
luarocks install --only-deps du-mocks-scm-0.rockspec | |
luarocks install luaunit | |
luarocks install luacov | |
luarocks install luafilesystem | |
- name: Test | |
run: ./test/runTests.sh -o junit | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@283dea176069279a9076e77b548668a8e4f0c31b # v2.9.0 | |
if: always() | |
with: | |
junit_files: "test/results/**/*.xml" | |
- run: luacov | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
if: ${{ matrix.luaVersion == '5.3' }} | |
- name: Export In-Game Tests | |
run: ./test/exportAll.sh | |
- name: Upload Test Artifacts | |
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4 | |
if: ${{ matrix.luaVersion == '5.3' }} | |
with: | |
name: test_configs | |
path: | | |
test/configExports | |
test/results/*.html | |
- run: rm -f test/results/*.xml | |
- name: Deploy Screen Renderer Output | |
uses: JamesIves/github-pages-deploy-action@a1ea191d508feb8485aceba848389d49f80ca2dc # v4.4.3 | |
if: ${{ matrix.luaVersion == '5.3' && (github.event_name == 'push' && github.ref_name == 'main') }} | |
with: | |
branch: codex | |
folder: test/results | |
target-folder: test-results |