Skip to content

Commit

Permalink
migrate to GitHub Actions instead of Azure pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbsgilbs committed Apr 8, 2022
1 parent 644821c commit 2354678
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 77 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
name: CI

on: [push, pull_request]

env:
MAIN_NODE_VERSION: "16"

jobs:
static-checks:
runs-on: ubuntu-latest
name: Run static checks
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ env.MAIN_NODE_VERSION }}
cache: 'yarn'
- run: yarn install
- run: yarn run types
tests:
needs: [static-checks]
runs-on: ubuntu-latest
name: Run tests
strategy:
matrix:
node: [ '12', '14', '16', '17' ]
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Run tests
run: yarn run test --coverage
- name: Publish code coverage
if: "${{ env.CC_TEST_REPORTER_ID != '' }}"
uses: paambaati/codeclimate-action@v3.0.0
build:
needs: [tests]
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ env.MAIN_NODE_VERSION }}
- run: yarn install
- run: yarn run build
- uses: actions/upload-artifact@v3
with:
name: babel-plugin-i18next-extract
path: lib/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# babel-plugin-i18next-extract

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Build Status](https://dev.azure.com/gilbsgilbert/babel-plugin-i18next-extract/_apis/build/status/gilbsgilbs.babel-plugin-i18next-extract?branchName=master)](https://dev.azure.com/gilbsgilbert/babel-plugin-i18next-extract/_build/latest?definitionId=1&branchName=master)
[![CI](https://github.com/gilbsgilbs/babel-plugin-i18next-extract/actions/workflows/main.yml/badge.svg)](https://github.com/gilbsgilbs/babel-plugin-i18next-extract/actions/workflows/main.yml)
[![Netlify Status](https://api.netlify.com/api/v1/badges/c3597f83-d80e-428e-b194-f11fe162a893/deploy-status)](https://app.netlify.com/sites/i18next-extract/deploys)
[![Test Coverage](https://api.codeclimate.com/v1/badges/e4badc4fb62625cbff0e/test_coverage)](https://codeclimate.com/github/gilbsgilbs/babel-plugin-i18next-extract/test_coverage)

Expand Down
76 changes: 0 additions & 76 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit 2354678

Please sign in to comment.