Skip to content

Commit

Permalink
Switch to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy committed Aug 2, 2022
1 parent 50175ca commit 8769807
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 28 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- '14'
steps:
- uses: actions/checkout@v2
- name: Set up system
run: bin/before_install
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
# TODO: Uncomment this for yarn 3
# cache: yarn
# registry-url: https://npm.manageiq.org/
- name: Prepare tests
run: bin/setup
- name: Run tests
run: bin/ci
- name: Report code coverage
if: ${{ github.ref == 'refs/heads/master' && matrix.node-version == '14' }}
continue-on-error: true
run: scripts/.coverage.sh
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Angular UI Components for ManageIQ

[![CI](https://github.com/ManageIQ/ui-components/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/ui-components/actions/workflows/ci.yaml)
[![Coverage Status](https://coveralls.io/repos/github/ManageIQ/ui-components/badge.svg)](https://coveralls.io/github/ManageIQ/ui-components)
[![Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ManageIQ/manageiq/ui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![score](https://www.bithound.io/github/ManageIQ/ui-components/badges/score.svg)](https://www.bithound.io/github/ManageIQ/ui-components)
[![dependencies](https://www.bithound.io/github/ManageIQ/ui-components/badges/dependencies.svg)](https://www.bithound.io/github/ManageIQ/ui-components/master/dependencies/npm)
[![bitHound Dev Dependencies](https://www.bithound.io/github/ManageIQ/ui-components/badges/devDependencies.svg)](https://www.bithound.io/github/ManageIQ/ui-components/master/dependencies/npm)
[![Known Vulnerabilities](https://snyk.io/test/github/mtho11/ui-components/badge.svg)](https://snyk.io/test/github/mtho11/ui-components)
[![Build Status](https://travis-ci.org/ManageIQ/ui-components.svg?branch=master)](https://travis-ci.com/github/ManageIQ/ui-components)
[![Coverage Status](https://coveralls.io/repos/github/ManageIQ/ui-components/badge.svg)](https://coveralls.io/github/ManageIQ/ui-components)

[![Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ManageIQ/manageiq/ui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

## Purpose

Expand Down
7 changes: 7 additions & 0 deletions bin/before_install
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -e

if [ -n "$CI" ]; then
npm install --global yarn
fi
5 changes: 2 additions & 3 deletions scripts/travis.sh → bin/ci
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/env bash
# must fail when test fails
#!/bin/bash

set -e

yarn install
yarn run build-dev
yarn run test
yarn run gettext:extract
9 changes: 9 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -e

if [ -n "$CI" ]; then
yarn global add typings webpack karma typescript
fi

yarn install

0 comments on commit 8769807

Please sign in to comment.