Merge pull request #1558 from joebordes/hacktoberfest2023 #1408
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: formatting_unittests | |
on: [push] | |
jobs: | |
formatcode: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the Docker image | |
run: docker build -t tsolucio/corebos-formatter -f ./docker/Dockerfile . | |
- name: run php formatting | |
run: docker run tsolucio/corebos-formatter phpcs.phar --standard=build/cbSR/ci.xml --extensions=inc,js,php,service `cat build/cbSR/cifiles build/cbSR/cifiles.custom` | |
- name: run js formatting | |
run: docker run tsolucio/corebos-formatter eslint -c build/cbSR/eslintci.js `cat build/cbSR/cifilesjs build/cbSR/cifilesjs.custom` | |
- name: find | |
run: docker run tsolucio/corebos-formatter find . -not -path "./.git/*" -type f -perm /u=x,g=x,o=x -print | sort -f | diff build/cbSR/executables - | |
- name: check syntax | |
run: docker run tsolucio/corebos-formatter build/cbSR/chksyntax | |
unittests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the Docker image | |
run: docker build -t tsolucio/corebosunittest -f ./docker/Dockerfileunittest . | |
- name: start corebos and run unit tests | |
run: docker run -t tsolucio/corebosunittest ./run.sh |