Skip to content

Commit

Permalink
Merge branch 'dev' into explode-words
Browse files Browse the repository at this point in the history
  • Loading branch information
dezren39 authored Sep 21, 2020
2 parents 407d92b + fc09282 commit f6f2cf3
Show file tree
Hide file tree
Showing 10 changed files with 2,207 additions and 3,272 deletions.
147 changes: 0 additions & 147 deletions .github/workflows/install-build-test.node.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/node.install-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Install, Build, Test [@nodejs]
on: [push, pull_request, pull_request_target, create, fork, release]
jobs:
install-build-test_node:
name: Install, Build, Test - ${{ matrix.pm }}(${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '14', '12', '10' ]
pm: [ 'yarn', 'npm' ]
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Install dependencies
run: ${{ matrix.pm }} install #--immutable --immutable-cache --check-cache
- name: Build target
run: ${{ matrix.pm }} build
- name: Test code
run: ${{ matrix.pm }} test
112 changes: 98 additions & 14 deletions .github/workflows/pr.check.base-branch.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,44 @@
name: Check Base-Branch [pr]
on: [ pull_request, pull_request_target, pull_request_review_comment, pull_request_review ]
on: [ pull_request, pull_request_target ]
jobs:
check_base-branch:
name: Check-fix invalid head=>base pairs
check_base-branch_dev:
name: Check-fix invalid head=>base pairs (dev)
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- if: github.ref == 'refs/heads/dev' || github.head_ref == 'dev' || github.head.ref == 'dev' || github.event.pull_request.head.ref == 'dev'
name: Check base-branch(dev) - main=>next (FORCE)
uses: dezren39/check-base-branch-action@v2
with:
protected-branches: "main"
default-branch: "next"
update-branch: true
repo-token: "${{ secrets.GITHUB_TOKEN }}"
check_base-branch_next:
name: Check-fix invalid head=>base pairs (next)
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
Expand All @@ -29,31 +65,79 @@ jobs:
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- if: github.ref == 'refs/heads/dev' || github.head_ref == 'dev' || github.head.ref == 'dev'
name: Check base-branch(dev) - main=>next (FORCE)
uses: dezren39/check-base-branch-action@v2
with:
protected-branches: "main"
default-branch: "next"
update-branch: true
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- if: github.ref == 'refs/heads/next' || github.head_ref == 'next' || github.head.ref == 'next'
- if: github.ref == 'refs/heads/next' || github.head_ref == 'next' || github.head.ref == 'next' || github.event.pull_request.head.ref == 'next'
name: Check base-branch(next) - dev=>main
uses: dezren39/check-base-branch-action@v2
with:
protected-branches: "dev"
default-branch: "main"
update-branch: false
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- if: github.ref == 'refs/heads/main' || github.head_ref == 'main' || github.head.ref == 'main'
check_base-branch_main:
name: Check-fix invalid head=>base pairs (main)
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- if: github.ref == 'refs/heads/main' || github.head_ref == 'main' || github.head.ref == 'main' || github.event.pull_request.head.ref == 'main'
name: Check base-branch(main) - next=>dev
uses: dezren39/check-base-branch-action@v2
with:
protected-branches: "next"
default-branch: "dev"
update-branch: false
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/next' && github.ref != 'refs/heads/main' && github.head_ref != 'dev' && github.head.ref != 'dev' && github.head_ref != 'next' && github.head.ref != 'next' && github.head_ref != 'main' && github.head.ref != 'main'
check_base-branch_feature:
name: Check-fix invalid head=>base pairs (feature)
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/next' && github.ref != 'refs/heads/main' && github.head_ref != 'dev' && github.head.ref != 'dev' && github.head_ref != 'next' && github.head.ref != 'next' && github.head_ref != 'main' && github.head.ref != 'main' && github.event.pull_request.head.ref == 'dev' && github.event.pull_request.head.ref == 'next' && github.event.pull_request.head.ref == 'main'
name: Check base-branch(feature) - main,next=>dev (FORCE)
uses: dezren39/check-base-branch-action@v2
with:
Expand Down
Loading

0 comments on commit f6f2cf3

Please sign in to comment.