Add github actions workflow for angular
This commit is contained in:
61
.github/workflows/angular.yml
vendored
Normal file
61
.github/workflows/angular.yml
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
name: Angular
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'desktop/angular/**'
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
- migration/mono-repo
|
||||
|
||||
pull_request:
|
||||
paths:
|
||||
- 'desktop/angular/**'
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
- migration/mono-repo
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Linter
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: desktop/angular
|
||||
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- run: npm install
|
||||
|
||||
- uses: sibiraj-s/action-eslint@v3
|
||||
with:
|
||||
annotations: true
|
||||
extensions: 'ts,html'
|
||||
working-directory: desktop/angular
|
||||
|
||||
test:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: earthly/actions-setup@v1
|
||||
with:
|
||||
version: v0.8.0
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build angular projects
|
||||
run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +build-angular
|
||||
12
.github/workflows/go.yml
vendored
12
.github/workflows/go.yml
vendored
@@ -45,5 +45,13 @@ jobs:
|
||||
with:
|
||||
version: v0.8.0
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run tests
|
||||
run: earthly --ci +test-go --TESTFLAGS="-short"
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build angular projects
|
||||
run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +test-go --TESTFLAGS="-short"
|
||||
|
||||
38
.github/workflows/tauri.yml
vendored
Normal file
38
.github/workflows/tauri.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Tauri
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'desktop/tauri/**'
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
- migration/mono-repo
|
||||
|
||||
pull_request:
|
||||
paths:
|
||||
- 'desktop/tauri/**'
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
- migration/mono-repo
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: earthly/actions-setup@v1
|
||||
with:
|
||||
version: v0.8.0
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build angular projects
|
||||
run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +tauri-release
|
||||
Reference in New Issue
Block a user