Skip to content

Update ci.yml

Update ci.yml #379

Workflow file for this run

name: ci
on: [push]
jobs:
tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
with:
submodules: recursive
- name: Repository lampy
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
with:
submodules: recursive
ref: 'v2.0'
repository: koromerzhin/lampy
path: lampy
- name: Install npm dependencies
run: npm install
- name: 'set .env'
run: 'cp .env.example .env'
- name: 'Launch Lampy'
run: cd lampy && npm run exec
- name: 'Image pull'
run: npm run docker:getpull-image
- name: 'create apps'
run: npm run create:apps
- name: 'Build containers'
run: npm run docker:deploy
- name: 'Waiting'
run: npm run docker:waiting
- name: linter readme.md
run: npm run lint:markdown
- name: Cypress run
uses: cypress-io/github-action@v6
- name: Définir les variables de date et de branche
run: |
echo "CURRENT_DATE=$(date '+%Y-%m-%d_%H-%M-%S')" >> $GITHUB_ENV
echo "CURRENT_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Archive screenshots
uses: actions/upload-artifact@v4
with:
name: "sveltejs-${{ env.CURRENT_BRANCH }}_${{ env.CURRENT_DATE }}"
path: cypress/
retention-days: 7