Skip to content

Disabled few tests, added issues for them: https://github.com/hyperif… #7

Disabled few tests, added issues for them: https://github.com/hyperif…

Disabled few tests, added issues for them: https://github.com/hyperif… #7

Workflow file for this run

name: Cross-OS Tests and Release
on:
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
name: Run tests
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-20.04, windows-latest, macos-latest]
node-version: [18, 20]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: git submodule update --init --recursive
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci --also=dev --legacy-peer-deps
- run: npm run test:ci
env:
NODE_OPTIONS: "--max-old-space-size=8192"
release:
name: Collect changes and Publish release
runs-on: ubuntu-latest
needs:
- test
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git submodule update --init --recursive
- name: List changes
run: ./scripts/write-release-message.sh
- name: Create release and tag
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v0.1.${{ github.run_number }}
release_name: Release v0.1.${{ github.run_number }}
body_path: "changes.md"
draft: false
prerelease: false
release-modules:
permissions:
contents: write
name: Publish Modules
runs-on: ubuntu-latest
needs:
- release
steps:
- uses: actions/checkout@v3
- run: git submodule update --init --recursive
- run: |
git config --global url."https://x-access-token:${{ env.GITHUB_TOKEN }}@github.com/".insteadOf "https://github.com/"
git config --global url."https://x-access-token:${{ env.GITHUB_TOKEN }}@github.com/".pushInsteadOf "https://github.com/"
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
git submodule update --init --recursive
./scripts/tag-all-submodules.sh "v0.1.${{ github.run_number }}" "Release v0.1.${{ github.run_number }}"
env:
GITHUB_TOKEN: ${{ secrets.HG_GITHUB_TOKEN }}