-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ci gh action, make deploy depend on tests job
- Loading branch information
Showing
4 changed files
with
47 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
name: tests | ||
env: | ||
XATA_API_KEY: ${{ secrets.XATA_API_KEY }} | ||
XATA_DB: ${{secrets.XATA_DB}} | ||
SUDO_SECRET: ${{ secrets.SUDO_SECRET }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
touch .dev.vars | ||
echo SUDO_SECRET="$SUDO_SECRET" >> .dev.vars | ||
echo XATA_API_KEY="$XATA_API_KEY" >> .dev.vars | ||
echo XATA_DB="$XATA_DB" >> .dev.vars | ||
- run: npm install | ||
- run: npm run test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters