Skip to content

Commit

Permalink
Fix GitHub Actions configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
openhands-agent committed Dec 2, 2024
1 parent cb73a94 commit 6c626a3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VITE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CRON_SECRET: test-secret
VITE_USE_CACHE: true
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ jobs:
run: npm test
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VITE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CRON_SECRET: test-secret
VITE_USE_CACHE: true

0 comments on commit 6c626a3

Please sign in to comment.