feat: detect if a visiting guest is present at home #136
Workflow file for this run
This file contains hidden or 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: "Verify" | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run_tests: | |
name: Verify PR - Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Extract node version from package.json | |
uses: sergeysova/jq-action@v2 | |
id: node_version | |
with: | |
cmd: jq .engines.node package.json -r | sed -e 's/"//g' | sed -e 's/>=//g' | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "${{ steps.node_version.outputs.value }}" | |
- name: Use Yarn | |
run: corepack enable | |
- name: Install deps | |
run: yarn | |
- name: Run all tests | |
run: yarn run test/all | |
- name: Coverage | |
if: always() | |
run: yarn run test/coverage/all | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODE_COV_TOKEN }} | |
build: | |
name: Verify PR - Package | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Extract node version from package.json | |
uses: sergeysova/jq-action@v2 | |
id: node_version | |
with: | |
cmd: jq .engines.node package.json -r | sed -e 's/"//g' | sed -e 's/>=//g' | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "${{ steps.node_version.outputs.value }}" | |
- name: Use Yarn | |
run: corepack enable | |
- name: Install deps | |
run: yarn | |
- name: Compile affected apps | |
run: yarn nx affected --target=package --parallel --base=HEAD~ --head=HEAD --verbose --exclude=backups | |
env: | |
GITHUB_USERNAME: ${{ github.actor }} | |
NODE_ENV: production | |
CI: "true" |