laws-africa / law-widgets

Web components for Akoma Ntoso documents
GNU General Public License v3.0
0 stars 0 forks source link

GitHub workflows #177

Closed musangowope closed 1 year ago

musangowope commented 1 year ago

Proposed workflow:

musangowope commented 1 year ago

The unit test passes on my local machine but fails github actions. Looking into this.

musangowope commented 1 year ago

@longhotsummer So law-widgets-styles visual tests pass if we have a workflow that runs on macos-latest

name: Unit Tests

on:
  push:
    branches:
      - "*"

jobs:
  run_tests:
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2.1.5
        with:
          node-version: 14.x
      - run: npm ci
      - run: npx lerna bootstrap
      - run: npx lerna run test

But ideally, we want to run on ubuntu because it saves on costs https://docs.github.com/en/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-actions