-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from perspect3vism/changeset
Mono repo builds & tests
- Loading branch information
Showing
465 changed files
with
71,632 additions
and
41,791 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": ["ad4m-host", "ad4min"] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Release AD4M modules on NPM | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js 16.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install Dependencies | ||
run: yarn install | ||
|
||
- name: Build packages | ||
run: yarn run build | ||
|
||
- name: Create Release Pull Request or Publish to npm | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
# This expects you to have a script called release which does a build for your packages and calls changeset publish | ||
publish: yarn release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Publish AD4MIN as a release on GitHub | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build-ad4min-binary: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest, ubuntu-latest, windows-latest] | ||
node-version: [16.x] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- name: Fetch source code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Rust stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
override: true | ||
toolchain: 1.63.0 | ||
|
||
- name: install dependencies (ubuntu only) | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Yarn Install | ||
run: yarn install | ||
|
||
- name: Build AD4M-Host & build AD4MIN binary (macos-latest) | ||
if: matrix.platform == 'macos-latest' | ||
run: yarn run build-macos | ||
|
||
- name: Build AD4M-Host & build AD4MIN binary (windows-latest) | ||
if: matrix.platform == 'windows-latest' | ||
run: yarn run build-windows | ||
|
||
- name: Build AD4M-Host & build AD4MIN binary (linux-latest) | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: yarn run build-linux | ||
|
||
- name: "Upload built AD4MIN" | ||
uses: tauri-apps/tauri-action@v0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version | ||
releaseName: "Ad4min v__VERSION__" | ||
releaseBody: "See the assets to download this version and install." | ||
projectPath: "./ui" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Node.js CI | ||
name: AD4M components | ||
|
||
on: | ||
push: | ||
|
@@ -31,18 +28,21 @@ jobs: | |
name: perspect3vism | ||
# If you chose API tokens for write access OR if you have a private cache | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- run: npm install -g npm | ||
- run: npm i | ||
- run: npm run build --if-present | ||
- run: npm test | ||
cache: 'yarn' | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Run the tests | ||
run: yarn test | ||
|
||
test-windows: | ||
name: Windows Test | ||
name: Test | ||
runs-on: windows-2019 | ||
strategy: | ||
matrix: | ||
|
@@ -68,27 +68,17 @@ jobs: | |
${{ runner.os }}-cargo-${{ hashFiles('./holochain_version.nix') }} | ||
${{ runner.os }}-cargo | ||
- name: Build Holochain | ||
env: | ||
SQLCIPHER_STATIC: 1 | ||
run: powershell -ExecutionPolicy Bypass -File ./scripts/install-binaries.ps1 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- name: Temp fix for bug https://github.com/npm/cli/issues/4980 | ||
run: | | ||
$WhereNode = Get-Command node | Select-Object -ExpandProperty Definition | ||
$NodeDirPath = Split-Path $WhereNode -Parent | ||
cd $NodeDirPath | ||
npm install [email protected] | ||
- run: npm i | ||
cache: 'yarn' | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Test | ||
- name: Run the tests | ||
run: | | ||
choco install swi-prolog | ||
$env:path += ";C:\Program Files\swipl\bin" | ||
npm run build --if-present | ||
npm run test:windows | ||
yarn run test:windows |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,45 @@ | ||
/src/**/*.js | ||
*.js.map | ||
*.js | ||
!scripts/*.js | ||
/build/* | ||
/node_modules | ||
!/src/rollup-plugin-hc-dna.js | ||
test-temp | ||
/scripts/note-ipfs-hash | ||
/scripts/perspective-diff-sync-hash | ||
src/tests/publishing-agent/ad4m/data/db.json | ||
!executor/scripts/*.js | ||
build/* | ||
node_modules | ||
!executor/src/rollup-plugin-hc-dna.js | ||
executor/src/tst-tmp | ||
executor/scripts/note-ipfs-hash | ||
executor/scripts/perspective-diff-sync-hash | ||
executorsrc/tests/publishing-agent/ad4m/data/db.json | ||
.DS_Store | ||
|
||
core/Links.test.js | ||
core/lib/* | ||
coverage | ||
.DS_store | ||
docs-src/api.md | ||
docs-src/typedoc | ||
docs-src/_book | ||
|
||
host/dist | ||
host/build | ||
|
||
|
||
ui/build | ||
ui/src-tauri/bins | ||
ui/.pnp | ||
.pnp.js | ||
|
||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
.turbo | ||
|
||
!rollup.config.js | ||
!jest.config.js | ||
!postinstall.js | ||
!esbuild.js |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
nix/* | ||
.github/* | ||
src/test-temp/* | ||
src/tst-tmp/* |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docs.ad4m.dev |
Oops, something went wrong.