Skip to content

Setup RTL script, packages, and YAML #5

Setup RTL script, packages, and YAML

Setup RTL script, packages, and YAML #5

Workflow file for this run

name: LGT Docker Build and Push Image
on:
pull_request:
branches: [develop]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/[email protected]
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile.dev
push: true
tags: ghcr.io/letsgettechnical/image:dev
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: pnpm install
run: pnpm ci
- name: tests
run: pnpm test