Skip to content

Commit

Permalink
ci: migrate from Travis/Jenkins to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
xel1045 committed Sep 22, 2023
1 parent 4e1e33c commit 7e6fbeb
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 37 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: ci

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Set Yarn 3 as package manager
run: |
corepack enable yarn
corepack prepare yarn@stable --activate
- name: Install Yarn dependencies
run: YARN_ENABLE_IMMUTABLE_INSTALLS=true yarn install

- name: JavaScript linting
run: yarn lint

package:
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
needs: tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Git Subsplit
run: |
wget https://raw.githubusercontent.com/dflydev/git-subsplit/2cde593a10acdb3fcafd2136ee7025fee9e925b2/git-subsplit.sh
chmod +x git-subsplit.sh
- name: Setup SSH Agent
if: ${{ inputs.ssh-private-key }}
uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.EXOLNET_PHPCS_CONFIG_SSH_DEPLOY_KEY }}

- name: Publish phpcs-config
run: ./git-subsplit.sh publish --heads="master" --no-tags packages/phpcs-config:git@github.com:exolnet/phpcs-config.git
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

18 changes: 0 additions & 18 deletions Jenkinsfile

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# eXolnet - Code Quality Tools

[![Software License](https://img.shields.io/badge/license-MIT-8469ad.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://img.shields.io/travis/eXolnet/code-quality-tools/master.svg?style=flat-square)](https://travis-ci.org/eXolnet/code-quality-tools)
[![Build Status](https://img.shields.io/github/actions/workflow/status/eXolnet/code-quality-tools/ci.yml?label=tests&style=flat-square)](https://github.com/eXolnet/code-quality-tools/actions?query=workflow%3Aci)

A collection of shareable configurations for various coding-style tools to make the configurations consistent across our projects.

## Available configurations

|Tool|Package|Version|Description|
Expand Down

0 comments on commit 7e6fbeb

Please sign in to comment.