Skip to content

Commit

Permalink
V9 ready for official alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinc committed Jan 6, 2024
2 parents 056039d + 9767049 commit 3f4b38c
Show file tree
Hide file tree
Showing 200 changed files with 13,093 additions and 6,914 deletions.
85 changes: 85 additions & 0 deletions .github/_tocleanup/-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# name: Build Framework

# on:
# pull_request:
# push:
# branches:
# - "**"
# - "!develop"
# - "!master"
# tags-ignore:
# - "**"

# jobs:
# build-framework-nodejs:
# runs-on: ubuntu-latest

# strategy:
# matrix:
# node-version: [18.x, 20.x]

# steps:
# - uses: actions/checkout@v4

# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node-version }}
# cache: "npm"
# cache-dependency-path: nodejs/package-lock.json

# - run: npm i -g typescript ts-node
# working-directory: ./nodejs
# - run: tsc -v ; ts-node -v
# working-directory: ./nodejs
# - run: npm ci
# working-directory: ./nodejs
# - run: npm run build
# working-directory: ./nodejs
# - run: npm run test
# working-directory: ./nodejs

# - name: Test Report ${{ matrix.node-version }}
# uses: dorny/[email protected]
# with:
# name: Tests
# path: nodejs/junit.json
# reporter: mocha-json

# - name: Upload coverage reports to Codecov
# if: contains(matrix.node-version, '20.x')
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# directory: nodejs/coverage

# - name: cleanup
# if: always()
# run: rm -f ~/.npmrc ; rm -f ./.npmrc;

# docs_build_:
# runs-on: ubuntu-latest

# strategy:
# matrix:
# node-version: [20.x]
# # See supported Node.js release schedule at https://nodejs.org/en/about/releases/

# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node-version }}
# cache: "npm"
# cache-dependency-path: documentation/package-lock.json

# - run: npm ci
# working-directory: documentation/

# - run: npm run build
# working-directory: documentation/
181 changes: 181 additions & 0 deletions .github/_tocleanup/-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
# name: Build and Publish (EA)

# on:
# push:
# branches:
# - "develop"

# jobs:
# build_and_publish_ea_nodejs:
# runs-on: ubuntu-latest

# strategy:
# matrix:
# node-version: [18.x, 20.x]
# #experimental: [false]
# #include:
# # - node-version: 19.x
# # experimental: true

# #continue-on-error: ${{ matrix.experimental }}

# outputs:
# version: ${{ steps.semver.outputs.version }}
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node-version }}
# cache: "npm"
# cache-dependency-path: nodejs/package-lock.json

# - run: npm i -g typescript ts-node
# working-directory: ./nodejs
# - run: tsc -v ; ts-node -v
# working-directory: ./nodejs
# - run: npm ci
# working-directory: ./nodejs

# - name: semver
# id: semver
# uses: paulhatch/[email protected]
# with:
# tag_prefix: "v"
# branch: develop
# major_pattern: "(MAJOR)"
# minor_pattern: "(MINOR)"
# format: "${major}.${minor}.${patch}-ea.${increment}"
# change_path: "./"
# bump_each_commit: true
# namespace: ""

# - run: rm -f ~/.npmrc ; rm -f ./.npmrc ; echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM2_TOKEN_PUB }}" > ./.npmrc
# working-directory: ./nodejs
# - run: |
# git config user.name "${{ secrets.NPM_NAME }}";
# git config user.email "${{ secrets.NPM_EMAIL }}";
# echo "Hello $(git config --get user.name)";

# - name: output version
# run: |
# echo "Setting version too: ${{ steps.semver.outputs.version }}";

# - run: npm version ${{ steps.semver.outputs.version }}
# working-directory: ./nodejs
# - run: npm run build
# working-directory: ./nodejs
# - run: npm run test
# working-directory: ./nodejs

# - name: Test Report ${{ matrix.node-version }}
# uses: dorny/[email protected]
# with:
# name: Tests
# path: nodejs/junit.json
# reporter: mocha-json

# - name: Upload coverage reports to Codecov
# if: contains(matrix.node-version, '20.x')
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# directory: nodejs/coverage

# - run: cp README.md ./nodejs/README.md

# - run: npm publish --tag ea
# working-directory: ./nodejs
# if: contains(matrix.node-version, '20.x')

# - run: npm pack
# working-directory: ./nodejs
# if: contains(matrix.node-version, '20.x')

# - uses: actions/upload-artifact@v2
# if: contains(matrix.node-version, '20.x')
# with:
# name: published-package
# path: ./nodejs/*.tgz

# - name: cleanup
# if: always()
# run: rm -f ~/.npmrc ; rm -f ./.npmrc;

# docker_build_ea_nodejs:
# needs: [build_and_publish_ea_nodejs, docs_build_ea]
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2

# - uses: actions/download-artifact@v2
# with:
# name: published-package
# path: ./nodejs

# - name: Set up QEMU
# uses: docker/setup-qemu-action@master
# with:
# platforms: all

# - name: Set up Docker Buildx
# id: buildx
# uses: docker/setup-buildx-action@master

# - name: Login to DockerHub
# if: github.event_name != 'pull_request'
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKER_HUB_USER }}
# password: ${{ secrets.DOCKER_HUB_TOKEN }}

# - name: Build
# uses: docker/build-push-action@v2
# with:
# builder: ${{ steps.buildx.outputs.name }}
# context: ./nodejs/
# file: ./nodejs/Dockerfile
# platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
# push: true
# tags: |
# betterweb/service-base:ea-node
# betterweb/service-base:node-${{ needs.build_and_publish_ea_nodejs.outputs.version }}

# docs_build_ea:
# runs-on: ubuntu-latest
# needs: [build_and_publish_ea_nodejs]

# strategy:
# matrix:
# node-version: [20.x]
# # See supported Node.js release schedule at https://nodejs.org/en/about/releases/

# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node-version }}
# cache: "npm"
# cache-dependency-path: documentation/package-lock.json

# - run: npm ci
# working-directory: documentation/

# - run: npm run build
# working-directory: documentation/

# - name: Update site
# uses: cloudflare/[email protected]
# with:
# apiToken: ${{ secrets.CF_API_TOKEN }}
# accountId: ${{ secrets.CF_ACCOUNT_ID }}
# command: pages publish documentation/.vuepress/dist --project-name=bsb-documentation --commit-dirty=true --branch=ea
Loading

0 comments on commit 3f4b38c

Please sign in to comment.