Merge pull request #163 from Its-treason/main #366
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: Build | |
on: [push, pull_request, workflow_dispatch] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
name: "Compile Typescript" | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v2 | |
- name: Install system deps | |
run: sudo apt install -y build-essential g++-10 libxi-dev libxext-dev libpixman-1-dev libcairo2-dev libpango1.0-dev libjpeg8-dev libgif-dev libjpeg-dev librsvg2-dev mesa-common-dev | |
- name: π Install deps | |
run: npm i | |
- name: π Compile | |
run: tsc | |
unit-test: | |
runs-on: ubuntu-latest | |
name: "Run unit tests" | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v2 | |
- name: Install system deps | |
run: sudo apt install -y build-essential g++-10 libxi-dev libxext-dev libpixman-1-dev libcairo2-dev libpango1.0-dev libjpeg8-dev libgif-dev libjpeg-dev librsvg2-dev mesa-common-dev | |
- name: π Install deps | |
run: npm i | |
- name: π Run tests | |
run: npm run test |