Skip to content

Commit

Permalink
working dir
Browse files Browse the repository at this point in the history
  • Loading branch information
lassejaco committed Nov 2, 2023
1 parent 9879c5c commit 6164081
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/devcon-archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,40 +18,50 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js
working_directory: devcon-archive
uses: actions/setup-node@v1
with:
node-version: "12.x"

- name: Change to relevant directory
working_directory: devcon-archive
run: cd devcon-archive

- name: Create env file
working_directory: devcon-archive
run: |
touch .env
echo DB_CONNECTION_STRING='${{ secrets.DB_CONNECTION_STRING }}' >> .env
echo ELASTIC_ENDPOINT='${{ secrets.ELASTIC_ENDPOINT }}' >> .env
- name: Install dependencies
working_directory: devcon-archive
run: yarn

- name: Run Prettier // Format
working_directory: devcon-archive
run: yarn format

- name: Run Eslint // Lint
working_directory: devcon-archive
run: yarn lint

- name: Run Build
working_directory: devcon-archive
run: yarn build

- name: Serve build to test against
working_directory: devcon-archive
run: yarn serve &

- uses: microsoft/playwright-github-action@v1

- name: Run your tests
working_directory: devcon-archive
run: npm test

- uses: actions/upload-artifact@v2
working_directory: devcon-archive
with:
name: screenshots
path: screenshots
11 changes: 8 additions & 3 deletions .github/workflows/devcon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,36 +22,41 @@ jobs:
with:
node-version: "12.x"

- name: Change to relevant directory
run: cd devcon-archive

- name: Create env file
working-directory: devcon
run: |
touch .env
echo DB_CONNECTION_STRING='${{ secrets.DB_CONNECTION_STRING }}' >> .env
echo ELASTIC_ENDPOINT='${{ secrets.ELASTIC_ENDPOINT }}' >> .env
- name: Install dependencies
working-directory: devcon
run: yarn

- name: Run Prettier // Format
working-directory: devcon
run: yarn format

- name: Run Eslint // Lint
working-directory: devcon
run: yarn lint

- name: Run Build
working-directory: devcon
run: yarn build

- name: Serve build to test against
working-directory: devcon
run: yarn serve &

- uses: microsoft/playwright-github-action@v1

- name: Run your tests
working-directory: devcon
run: npm test

- uses: actions/upload-artifact@v2
working-directory: devcon
with:
name: screenshots
path: screenshots

0 comments on commit 6164081

Please sign in to comment.