Skip to content

Push the feature branch by @kurone-kito #47

Push the feature branch by @kurone-kito

Push the feature branch by @kurone-kito #47

Workflow file for this run

name: The CI workflow on push as a feature branch
run-name: Push the feature branch by @${{ github.actor }}
on:
push:
branches:
- '*'
- '!main'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
build:
defaults:
run:
shell: ${{ matrix.platform.shell }}
name: The build process
runs-on: ${{ matrix.platform.os }}
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Stages the pushed branch
uses: actions/checkout@v4
- name: Pre-prepare the Node.js version ${{ matrix.node-version }} environment
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Enable the corepack because of the Yarn berry
run: corepack enable
- name: Post-prepare the Node.js version ${{ matrix.node-version }} environment
uses: actions/setup-node@v4
with:
cache: ${{ !env.ACT && 'yarn' || '' }}
node-version: ${{ matrix.node-version }}
- env:
HUSKY: 0
name: Install the dependencies
run: yarn install --inline-builds
- name: Run the build
run: yarn run build
- name: Run the tests
run: yarn run test
strategy:
matrix:
node-version:
- 18.x
- 20.x
- 21.x
platform:
- os: ubuntu-latest
shell: bash
- os: windows-latest
shell: bash
- os: windows-latest
shell: powershell
fail-fast: false
timeout-minutes: 30