Skip to content

Commit

Permalink
removed build from actions bc env
Browse files Browse the repository at this point in the history
  • Loading branch information
scshiv29-dev committed Sep 22, 2024
1 parent fb9fc75 commit ffe990c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 40 deletions.
40 changes: 1 addition & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI Pipeline
name: Spell Check

on:
push:
Expand All @@ -13,47 +13,9 @@ jobs:
runs-on: ubuntu-latest

steps:
# Checkout code
- name: Checkout code
uses: actions/checkout@v3

# Set up Node.js environment
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org' # Use this if using npm for other steps

# Set environment variables from GitHub Secrets
- name: Set env variables
run: |
echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" >> $GITHUB_ENV
echo "AUTH_SECRET=${{ secrets.AUTH_SECRET }}" >> $GITHUB_ENV
echo "AUTH_GITHUB_ID=${{ secrets.AUTH_GITHUB_ID }}" >> $GITHUB_ENV
echo "AUTH_GITHUB_SECRET=${{ secrets.AUTH_GITHUB_SECRET }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_SUPABASE_URL=${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_ANON_KEY=${{ secrets.NEXT_PUBLIC_ANON_KEY }}" >> $GITHUB_ENV
echo "SUPABASE_SERVICE_ROLE_KEY=${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}" >> $GITHUB_ENV
# Install dependencies using Yarn
- name: Install dependencies
run: yarn install

# Run build using Yarn
- name: Run build
run: yarn build

# ESLint check
- name: Run ESLint
run: yarn lint

# Run spell check
- name: Spell Check
uses: reviewdog/action-misspell@v1
with:
locale: "en"
reporter: "github-pr-review"

# Run tests (optional)
- name: Run tests
run: yarn test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Here’s a README template for your Sudoken app that you can use on GitHub:
---

# Sudoken
[![CI Pipeline](https://github.com/scshiv29-dev/sudoken/actions/workflows/ci.yml/badge.svg)](https://github.com/scshiv29-dev/sudoken/actions/workflows/ci.yml)
[![Spell Check](https://github.com/scshiv29-dev/sudoken/actions/workflows/ci.yml/badge.svg)](https://github.com/scshiv29-dev/sudoken/actions/workflows/ci.yml)

![Sudoken Logo](./logo2.png) <!-- Replace with a link to your logo hosted on GitHub or elsewhere -->

Expand Down

0 comments on commit ffe990c

Please sign in to comment.