only mason install if system has tools #781
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: [dev] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "macos-latest"] | |
env: | |
TERM: xterm | |
steps: | |
- name: Brew | |
run: | | |
if [ "$RUNNER_OS" == "macOS" ]; then brew install shellcheck; fi | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v4 | |
with: | |
# Semantic version range syntax or exact version of a Python version | |
python-version: '3.x' | |
- name: Upgrade pip | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install --requirement=requirements.txt | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install npm packages | |
run: npm ci | |
- name: Test | |
run: | | |
./bootstrap/symlink | |
npm test --silent | |
release: | |
needs: test | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Merge dev -> master | |
uses: devmasx/[email protected] | |
with: | |
type: now | |
from_branch: dev | |
target_branch: master | |
github_token: ${{ github.token }} |