Skip to content

feat: better module supports esm/cjs with/without ts #216

feat: better module supports esm/cjs with/without ts

feat: better module supports esm/cjs with/without ts #216

Workflow file for this run

name: Tests
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
NPM_TOKEN: ""
jobs:
run-tests:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Install GJS
run: |
sudo sed -i 's/azure\.//' /etc/apt/sources.list
echo nameserver 8.8.8.8 | sudo tee /etc/resolv.conf
echo "Starting update"
sudo apt-get update -o Acquire::ForceIPv4=true -y
echo "Installing GJS"
sudo apt-get install -o Acquire::ForceIPv4=true -y gjs libsoup2.4-dev
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: ./.yarn/yarn.cjs install --immutable --mode=skip-build
- name: Run TypeScript
run: ./.yarn/yarn.cjs test:tsc
- name: Run Linter
run: ./.yarn/yarn.cjs test:lint
- name: Run Prettier Check
run: ./.yarn/yarn.cjs test:fmt
- name: Run Unit Test
run: ./.yarn/yarn.cjs test:unit
- name: Attempt Build
run: ./.yarn/yarn.cjs build