-
-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update docker-pr-build.yml Add python-is-python3 apt package * Update docker-release-build.yml Add python-is-python3 ( Ubuntu 20.04 ) * Switch to ubuntu-20.04 * Switch to ubuntu-20.04 * Switch to ubuntu-20.04 * Bump actions and Fix codecov ( git depth ) * download-artifact@v2 Fix path * Add Master branch tests workflow
- Loading branch information
Showing
4 changed files
with
145 additions
and
33 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
name: Master branch tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test-front: | ||
name: Front test | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- | ||
name: β¬οΈ Checkout Gladys code | ||
uses: actions/checkout@v2 | ||
- | ||
name: π½ Setup nodejs | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12' | ||
- | ||
name: π Use npm cache | ||
uses: c-hive/gha-npm-cache@v1 | ||
- | ||
name: π¦ Install Global NPM Packages | ||
run: | | ||
sudo npm install typescript node-gyp npm@latest -g | ||
- | ||
name: π¦ Install NPM front packages | ||
working-directory: ./front | ||
run: | | ||
npm ci | ||
- | ||
name: π§ Prettier check | ||
working-directory: ./front | ||
run: | | ||
npm run prettier-check | ||
- | ||
name: π ESlint | ||
working-directory: ./front | ||
run: | | ||
npm run eslint | ||
- | ||
name: π Integration comparison | ||
working-directory: ./front | ||
run: | | ||
npm run compare-translations | ||
test-server: | ||
name: Server test | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- | ||
name: β¬οΈ Checkout Gladys code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
- | ||
name: π½ Setup nodejs | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12' | ||
- | ||
name: π Use npm cache | ||
uses: c-hive/gha-npm-cache@v1 | ||
- | ||
name: π₯οΈ Setup OZW | ||
run: | | ||
docker create -ti --name dummy chrisns/openzwave:ubuntu-1.6.1714 bash | ||
sudo docker cp dummy:/usr/local/include/openzwave /usr/local/include/openzwave | ||
sudo docker cp dummy:/openzwave/libopenzwave.so /usr/local/lib | ||
sudo docker cp dummy:/openzwave/libopenzwave.so.1.6 /usr/local/lib | ||
sudo docker cp dummy:/openzwave/config /usr/local/etc/openzwave | ||
sudo ldconfig | ||
docker rm -f dummy | ||
- | ||
name: π½ Install System Dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt-get install -y libudev-dev sqlite3 openssl python-is-python3 | ||
- | ||
name: π¦ Install Global NPM Packages | ||
run: | | ||
sudo npm install typescript node-gyp npm@latest -g | ||
- | ||
name: π¦ Install NPM server packages | ||
working-directory: ./server | ||
run: | | ||
npm ci | ||
- | ||
name: π§ Prettier check | ||
working-directory: ./server | ||
run: | | ||
npm run prettier-check | ||
- | ||
name: π ESlint | ||
working-directory: ./server | ||
run: | | ||
npm run eslint | ||
- | ||
name: β Test with coverage | ||
working-directory: ./server | ||
run: | | ||
npm run coverage | ||
- | ||
name: π Codecov report upload | ||
uses: codecov/codecov-action@v1 |
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
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