Skip to content

Commit

Permalink
Merge pull request #28 from skunkworksza/main
Browse files Browse the repository at this point in the history
  • Loading branch information
burnt-exe authored Jul 2, 2024
2 parents 5646ed0 + 7a94a78 commit 5eb661c
Show file tree
Hide file tree
Showing 1,612 changed files with 46,513 additions and 1 deletion.
1 change: 1 addition & 0 deletions .anima/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cache
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
10 changes: 10 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "weekly"
52 changes: 52 additions & 0 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Deploy to GitHub Pages

on:
push:
branches: ["main"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for accurate build

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '16.x'
cache: 'npm'

- name: Install dependencies
run: |
npm install
working-directory: ./backend

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'

- name: Install Jekyll dependencies
run: bundle install

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Build with Jekyll
run: bundle exec jekyll build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
39 changes: 39 additions & 0 deletions .github/workflows/deploy-heroku.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy Skunkworks Contact Form

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest

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

- name: Set up Node.jscode
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install
working-directory: ./backend

- name: Deploy to Heroku
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_APP_NAME: ${{ secrets.HEROKU_APP_NAME }}
HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }}
run: |
echo "machine api.heroku.com" >> ~/.netrc
echo " login ${{ secrets.HEROKU_EMAIL }}" >> ~/.netrc
echo " password ${{ secrets.HEROKU_API_KEY }}" >> ~/.netrc
echo "machine git.heroku.com" >> ~/.netrc
echo " login ${{ secrets.HEROKU_EMAIL }}" >> ~/.netrc
echo " password ${{ secrets.HEROKU_API_KEY }}" >> ~/.netrc
git remote add heroku https://git.heroku.com/${{ env.HEROKU_APP_NAME }}.git
git push heroku main
working-directory: ./backend
79 changes: 79 additions & 0 deletions .github/workflows/deploy-jekyll.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Deploy to GitHub Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for accurate build

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '16.x'
cache: 'npm'

- name: Install dependencies
working-directory: ./backend
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
continue-on-error: true # Allow the step to continue even if it fails

- name: Retry Install dependencies if it fails
if: failure() # Check if previous step failed
working-directory: ./backend
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'

- name: Install Jekyll dependencies
run: |
bundle install
continue-on-error: true # Allow the step to continue even if it fails

- name: Retry Install Jekyll dependencies if it fails
if: failure() # Check if previous step failed
run: |
bundle install
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Build with Jekyll
run: |
bundle exec jekyll build
continue-on-error: true # Allow the step to continue even if it fails

- name: Retry Build with Jekyll if it fails
if: failure() # Check if previous step failed
run: |
bundle exec jekyll build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
69 changes: 69 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Deploy to GitHub Pages

on:
push:
branches: ["main"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for accurate build

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '16.x'
cache: 'npm'

- name: Install dependencies
run: |
npm install
continue-on-error: true # Allow the step to continue even if it fails
- name: Retry Install dependencies if it fails
if: failure() # Check if previous step failed
run: |
npm install
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'

- name: Install Jekyll dependencies
run: |
bundle install
continue-on-error: true # Allow the step to continue even if it fails
- name: Retry Install Jekyll dependencies if it fails
if: failure() # Check if previous step failed
run: |
bundle install
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Build with Jekyll
run: |
bundle exec jekyll build
continue-on-error: true # Allow the step to continue even if it fails
- name: Retry Build with Jekyll if it fails
if: failure() # Check if previous step failed
run: |
bundle exec jekyll build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
65 changes: 65 additions & 0 deletions .github/workflows/site-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Site Check

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-and-test:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Install dependencies
run: npm install

- name: Run linting for JS and CSS
run: |
npm run lint:js
npm run lint:css
- name: Run tests
run: npm test

- name: Run Storybook tests
run: npm run chromatic --project-token=${{ secrets.CHROMATIC_PROJECT_TOKEN }}

- name: Build project
run: npm run build

- name: Validate HTML
run: npx html-validator-cli --file dist/**/*.html --format=text

- name: Validate CSS
run: npx stylelint "dist/**/*.css"

- name: Validate JS
run: npx eslint "dist/**/*.js"

- name: Verify images
run: python ./verify_images.py

deploy:
runs-on: ubuntu-latest
needs: build-and-test

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

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
Loading

0 comments on commit 5eb661c

Please sign in to comment.