From 1077c53e0e5c458060e3618d0af115c46a6449a7 Mon Sep 17 00:00:00 2001 From: lucidkobold Date: Wed, 27 Aug 2025 23:41:34 +0000 Subject: [PATCH] Update .github/workflows/main.yml --- .github/workflows/main.yml | 48 ++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 28 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 51d2f42..c5ad6a7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 + \ No newline at end of file