Skip to content

Merge pull request #12 from hyperse-io/changeset-release/main #37

Merge pull request #12 from hyperse-io/changeset-release/main

Merge pull request #12 from hyperse-io/changeset-release/main #37

Workflow file for this run

name: CI-next-core
on:
push:
branches:
- main
- major
- minor
- dev
# Only consider those paths to trigger the action
paths:
- 'packages/**'
- 'package.json'
- '*.lock'
- '.yarnrc.yml'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/**'
pull_request:
branches:
- main
- major
- minor
- dev
types:
- opened
- synchronize
- reopened
# Only consider those paths to trigger the action
paths:
- 'packages/**'
- 'package.json'
- '*.lock'
- '.yarnrc.yml'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: 📥 Monorepo install
uses: ./.github/actions/yarn-nm-install
- name: Typecheck
working-directory: packages/next-core
run: |
yarn typecheck
- name: Linter
working-directory: packages/next-core
run: |
yarn lint
- name: Unit tests
working-directory: packages/next-core
run: |
yarn test-unit --passWithNoTests
- name: Build next-core
working-directory: packages/next-core
run: |
yarn build
# commit:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# ref: main
# - uses: actions/setup-node@v4
# with:
# node-version: 18
# - name: 📥 Monorepo install
# uses: ./.github/actions/yarn-nm-install
# - name: Unit test coverage
# working-directory: packages/next-core
# run: |
# yarn test-coverage
# - name: Publish github pages
# run: |
# git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
# git config --global user.name 'hyperse-net'
# git config --global user.email '[email protected]'
# git fetch
# git checkout gb_pages
# mkdir -p ./gb_pages
# cp -R ./packages/next-core/coverage/* ./gb_pages/coverage/next-core
# git add gb_pages/*
# git commit -m "Update page"
# git push