Skip to content

add ci for nodejs instead of docker #22

add ci for nodejs instead of docker

add ci for nodejs instead of docker #22

name: Docker Actions
on:
push:
branches:
- main
jobs:
setup-environment:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Compose
run: |
sudo rm /usr/local/bin/docker-compose
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /tmp/docker-compose
chmod +x /tmp/docker-compose
sudo mv /tmp/docker-compose /usr/local/bin/docker-compose
- name: Start localstack
run: docker-compose up -d localstack
run-tests:

Check failure on line 26 in .github/workflows/docker-workflow.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker-workflow.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
- run: npm test
- name: Clean up
run: docker-compose down --volumes