34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
|
|
name: Release
|
|
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
CYPRESS_INSTALL_BINARY: 0
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.16.1]
|
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- run: |
|
|
docker-compose -f docker-compose.yml up -d redeye-artifacts
|
|
docker create -ti --name redeye-artifacts redeye-builder bash
|
|
docker cp redeye-artifacts:/app/outputs ./artifacts
|
|
docker rm -f redeye-artifacts
|
|
- name: Archive artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: RedEye
|
|
path: artifacts
|