Skip to content

node version 20

node version 20 #332

Workflow file for this run

name: 🚀 Ship
on:
push:
branches:
- main
- nuxt-new
jobs:
setup:
name: Setup 📦
runs-on: ubuntu-22.04
env:
NUXT_TELEMETRY_DISABLED: 1
CYPRESS_INSTALL_BINARY: 0
steps:
- name: Checkout 🛎
uses: actions/checkout@master
- name: Setup node env 🏗
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- name: Install dependencies 👨🏻‍💻
run: yarn --frozen-lockfile --non-interactive
lint:
name: Lint 🚨
needs: setup
runs-on: ubuntu-22.04
env:
NUXT_TELEMETRY_DISABLED: 1
CI: 1
steps:
- name: Checkout 🛎
uses: actions/checkout@master
- name: Setup node env 🏗
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- name: Run linter 👀
run: yarn lint
# test:
# name: Test 🧪
# needs: setup
# runs-on: ubuntu-20.04
# env:
# NUXT_TELEMETRY_DISABLED: 1
# CI: 1
# TERM: xterm
# steps:
# - name: Checkout 🛎
# uses: actions/checkout@master
# - name: Setup node env 🏗
# uses: actions/[email protected]
# with:
# node-version: 16
# cache: 'yarn'
# - name: Cache workspace 📦
# uses: actions/cache@v3
# with:
# path: |
# node_modules
# .cache/Cypress
# ./*
# key: ${{ matrix.os }}-node-v${{ matrix.node }}-app-${{ github.sha }}
# - name: Install Cypress 🧪
# run: npx cypress install
# - name: Test 🧪
# uses: cypress-io/github-action@v4
# with:
# install: false
# start: yarn server --production
# cache-key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
# env:
# BASE_URL: http://localhost:3001
# SUPABASE_URL: ${{secrets.SUPABASE_URL}}
# SUPABASE_KEY: ${{secrets.SUPABASE_KEY}}
deploy-fly:
name: Deploy to Fly 🎈
needs:
- lint
runs-on: ubuntu-latest
concurrency: deploy-group
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}