Skip to content

Commit

Permalink
Use CI
Browse files Browse the repository at this point in the history
  • Loading branch information
FriggaHel committed Jun 19, 2024
1 parent a29155c commit f4074ef
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Swag Labs Sample App Workflow

on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
env:
BUILD_PREFIX: true
IS_MAIN: ${{ github.ref == 'refs/heads/main' }}
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
SCREENER_API_KEY: ${{ secrets.SCREENER_API_KEY }}
steps:
- uses: actions/checkout@v2

- name: Build
uses: actions/setup-node@v2
with:
node-version: '14.x'

- uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Build site
env:
CI: false
run: |
ls
npm ci
npm run build
- name: Build storybook
env:
CI: false
run: |
ls
npm run build.storybook
6 changes: 5 additions & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ jobs:
with:
node-version: '14.x'

- uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Build site
env:
CI: false
run: |
ls
npm install
npm ci
npm run build
- name: Build storybook
Expand Down

0 comments on commit f4074ef

Please sign in to comment.