Merge pull request #499 from phanect/feat-gha

Add GitHub Actions
This commit is contained in:
André B
2024-08-29 15:37:02 -04:00
committed by GitHub
3 changed files with 2794 additions and 686 deletions

41
.github/workflows/actions.yaml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: GitHub Actions
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18
- 20
- 22
steps:
- uses: actions/checkout@v4
- name: Use Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run build
# - run: npm test
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run check

3429
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -13,8 +13,13 @@
"build": "astro build", "build": "astro build",
"preview": "astro preview", "preview": "astro preview",
"astro": "astro", "astro": "astro",
"format": "prettier -w .", "check": "npm run check:astro && npm run check:eslint && npm run check:prettier",
"lint:eslint": "eslint ." "check:astro": "astro check",
"check:eslint": "eslint .",
"check:prettier": "prettier --check .",
"fix": "npm run fix:eslint && npm run fix:prettier",
"fix:eslint": "eslint --fix .",
"fix:prettier": "prettier -w ."
}, },
"dependencies": { "dependencies": {
"@astrojs/rss": "^4.0.7", "@astrojs/rss": "^4.0.7",
@@ -30,6 +35,7 @@
"unpic": "^3.18.0" "unpic": "^3.18.0"
}, },
"devDependencies": { "devDependencies": {
"@astrojs/check": "^0.9.3",
"@astrojs/mdx": "^3.1.4", "@astrojs/mdx": "^3.1.4",
"@astrojs/partytown": "^2.1.1", "@astrojs/partytown": "^2.1.1",
"@astrojs/tailwind": "5.1.0", "@astrojs/tailwind": "5.1.0",