working dir #3
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
name: Devcon Archive CI | ||
on: | ||
push: | ||
paths: | ||
- "lib/**" | ||
- "devcon-archive/**" | ||
- ".github/workflows/devcon-archive.yml" | ||
pull_request: | ||
paths: | ||
- "lib/**" | ||
- "devcon-archive/**" | ||
- ".github/workflows/devcon-archive.yml" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
working_directory: devcon-archive | ||
Check failure on line 21 in .github/workflows/devcon-archive.yml GitHub Actions / Devcon Archive CIInvalid workflow file
|
||
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 |