Move AWS secrets from .env
to lookit-api and add S3 error handling …
#333
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: build | |
on: push | |
jobs: | |
build: | |
name: Build, lint, and test on Node.js ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ["18.x", "20.x"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node v${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: npm | |
- name: Install pango for NPM package "canvas" | |
run: sudo apt-get update && sudo apt-get install -y libpango1.0-dev | |
- name: Install NPM dependencies | |
run: npm ci | |
- name: Create environment file | |
run: printenv > .env | |
env: | |
DEBUG: "false" | |
LOCAL_DOWNLOAD: "false" | |
- name: Build packages | |
run: npm run build | |
- name: Lint project | |
run: npm run lint | |
- name: Format project | |
run: npm run format | |
- name: Test project | |
run: npm test |