Skip to content

Commit

Permalink
Fix Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
chessebuilderman committed Dec 18, 2024
1 parent 12dad6c commit 99cb839
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 59 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/Main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Main
on: [ push, pull_request, workflow_dispatch ]
jobs:
# ---------------------------------- Lint ----------------------------------
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20.x ]
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: yarn

- name: Run ESLint
run: yarn lint
# ------------------------------ Build Project -----------------------------
build_project:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20.x ]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2

- name: Build project files
run: yarn build
# ------------------------------ Build Docker ------------------------------
build_docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Build Docker Image
run: |
docker build . -t ci:0
deploy:
runs-on: ubuntu-latest
steps:
- name: Invoke deployment hook
uses: distributhor/workflow-webhook@v3
with:
webhook_url: ${{ secrets.WEBHOOK_URL }}
19 changes: 0 additions & 19 deletions .github/workflows/docker-cd.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/docker-ci.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/eslint.yml

This file was deleted.

0 comments on commit 99cb839

Please sign in to comment.