Skip to content

Commit

Permalink
github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AshyBoxy committed Nov 1, 2024
1 parent f1cb716 commit 587c015
Show file tree
Hide file tree
Showing 3 changed files with 895 additions and 570 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on: push
jobs:
check_and_build:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: '22.9'
- name: Install dependencies
run: npm ci --include dev
- name: Check
run: npm run check
if: ${{ ! failure() }}
continue-on-error: true
- name: Build
run: npm run build
if: ${{ ! failure() }}
continue-on-error: true
- name: Create artifact
id: create
run: |
rm -rf node_modules
tar -cf bread-framework.tar.gz ./*
if: ${{ ! failure() }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: bread-framework.tar.gz
path: bread-framework.tar.gz
if: ${{ ! failure() }}
4 changes: 1 addition & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import js from "@eslint/js";
import stylistic from "@stylistic/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import globals from "globals";
import ts from "typescript-eslint";


const tsConfigMain = ts.configs.recommended.map((config) => ({
...config, files: ["**/*.ts"]
}));
Expand All @@ -30,7 +28,7 @@ export default [
globals: {
...globals.node
},
parser: tsParser,
parser: ts.parser,
ecmaVersion: 2022,
sourceType: "module"
},
Expand Down
Loading

0 comments on commit 587c015

Please sign in to comment.