Update .github/workflows/main.yml
All checks were successful
Node.js CI / build (18.x) (pull_request) Successful in 1m0s
Node.js CI / build (20.x) (pull_request) Successful in 1m1s
Node.js CI / build (22.x) (pull_request) Successful in 1m1s

This commit is contained in:
2025-08-27 23:41:34 +00:00
parent 4164ff61cf
commit 1077c53e0e

View File

@@ -13,50 +13,42 @@ on:
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# NPM
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v2
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'npm'
# - run: npm i
# - run: npm run lint
# - run: npm run build
# # - run: npm run start
# - run: npm run test
- name: "Base requirements"
run: |
# packages
apk update && apk add --no-cache git docker docker-compose nodejs gpg openssh npm ansible
# ansible collections
ansible-galaxy collection install community.general --force
ansible-galaxy collection install ansible.posix --force
# Corepack
- name: Enable Corepack
- name: Install Corepack
run: npm install -g corepack
- name: "Enable Corepack"
run: corepack enable
- name: Enable Corepack
- name: "Install Yarn"
run: corepack prepare yarn@4.9.2 --activate
# YARN
- uses: borales/actions-yarn@v4
with:
cmd: install --immutable # will run `yarn install` command
- name: "Install Dependencies"
run: yarn install # will run `yarn install` command
#- uses: borales/actions-yarn@v3.0.0
# with:
# cmd: test # will run `yarn test` command
#- uses: borales/actions-yarn@v3.0.0
# with:
# cmd: type-check # will run `yarn type-check` command
- uses: borales/actions-yarn@v4
with:
cmd: lint # will run `yarn lint` command
- uses: borales/actions-yarn@v4
with:
cmd: build # will run `yarn build` command
- uses: borales/actions-yarn@v4
with:
cmd: build # will run `yarn start` command
- name: "Lint Repo"
run: yarn lint # will run `yarn lint` command
- name: "Build Code"
run: yarn run build # will run `yarn build` command