Skip to content

Commit

Permalink
Merge pull request #2723 from cozy/chore/VER-1004
Browse files Browse the repository at this point in the history
chore: Add CI with Github Actions
  • Loading branch information
Merkur39 authored Oct 16, 2024
2 parents faa691b + b05a735 commit 92b9111
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 48 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI/CD

on:
pull_request:
push:
branches:
- master
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'

env:
MATTERMOST_CHANNEL: '{"dev":"gangsters","beta":"gangsters,publication","stable":"gangsters,publication"}'
MATTERMOST_HOOK_URL: ${{ secrets.MATTERMOST_HOOK_URL }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
BUNDLEMON_PROJECT_ID: ${{ secrets.BUNDLEMON_PROJECT_ID }}

jobs:
build:
name: Build and publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint & Quality checks
run: |
yarn lint
yarn check-locales
yarn check-fixtures
- name: Test
run: yarn test --runInBand
- name: Build
run: yarn build
- name: BundleMon
uses: lironer/bundlemon-action@v1
- name: Set SSH for downcloud
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DOWNCLOUD_SSH_KEY }}
- name: Publish
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
run: |
yarn run cozyPublish --yes
yarn uploadStaticFiles
48 changes: 0 additions & 48 deletions .travis.yml

This file was deleted.

0 comments on commit 92b9111

Please sign in to comment.