* Add new CI workflow

* Add badge
This commit is contained in:
William Durand 2024-05-14 13:08:35 +02:00 коммит произвёл GitHub
Родитель 96bd8b2034
Коммит 2695c880b4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 31 добавлений и 0 удалений

30
.github/workflows/ci.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,30 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: yarn install --immutable
- name: Run tests
run: yarn run test-ci
- name: Make a production build
run: yarn build:production

Просмотреть файл

@ -1,3 +1,4 @@
[![CI](https://github.com/mozilla/extension-workshop/actions/workflows/ci.yml/badge.svg)](https://github.com/mozilla/extension-workshop/actions/workflows/ci.yml)
[![CircleCI](https://circleci.com/gh/mozilla/extension-workshop/tree/master.svg?style=svg)](https://circleci.com/gh/mozilla/extension-workshop/tree/master)
# Firefox Extension Workshop