Skip to content

Commit

Permalink
ci: Merge separate package workflows into common "test" & "legacy" wo…
Browse files Browse the repository at this point in the history
…rkflows

As the workspaces config requires npm@7, that needs to be installed
separately for Node.js 12 & 14 in GitHub Actions.
  • Loading branch information
eemeli committed Jul 28, 2021
1 parent 2e8bdcf commit e0d2335
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 190 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/fluent-bundle.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/fluent-dedent.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/fluent-gecko.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/fluent-langneg.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/fluent-sequence.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/fluent-syntax.yml

This file was deleted.

19 changes: 9 additions & 10 deletions .github/workflows/fluent-dom.yml → .github/workflows/legacy.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
name: "@fluent/dom"
name: legacy
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
dist:
runs-on: ubuntu-latest
strategy:
matrix:
node: [12.x, 14.x, 16.x]
node: [12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{matrix.node}}
uses: actions/setup-node@v1
with:
node-version: ${{matrix.node}}
- name: Install build tools
run: npm ci
- name: Install package dependencies
working-directory: ./fluent-dom
run: npm ci
- name: make dist
working-directory: ./fluent-dom
run: make dist
- run: npm install --global npm@7
- run: npm ci
- run: npm run build --workspaces
- run: npm test
- run: npm run lint
- run: npm run docs --workspaces
18 changes: 8 additions & 10 deletions .github/workflows/fluent-react.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
name: "@fluent/react"
name: test
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
dist:
runs-on: ubuntu-latest
strategy:
matrix:
node: [12.x, 14.x, 16.x]
node: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{matrix.node}}
uses: actions/setup-node@v1
with:
node-version: ${{matrix.node}}
- name: Install build tools
run: npm ci
- name: Install package dependencies
working-directory: ./fluent-react
run: npm ci
- name: make dist
working-directory: ./fluent-react
run: make dist
- run: npm ci
- run: npm run build --workspaces
- run: npm test
- run: npm run lint
- run: npm run docs --workspaces
2 changes: 1 addition & 1 deletion fluent-bundle/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @fluent/bundle ![](https://github.com/projectfluent/fluent.js/workflows/@fluent/bundle/badge.svg)
# @fluent/bundle ![](https://github.com/projectfluent/fluent.js/workflows/test/badge.svg)

`@fluent/bundle` is a JavaScript implementation of [Project Fluent][],
optimized for runtime performance.
Expand Down
2 changes: 1 addition & 1 deletion fluent-dedent/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @fluent/dedent ![](https://github.com/projectfluent/fluent.js/workflows/@fluent/dedent/badge.svg)
# @fluent/dedent ![](https://github.com/projectfluent/fluent.js/workflows/test/badge.svg)

`@fluent/dedent` provides a template literal tag to dedent Fluent code. It's
part of [Project Fluent][].
Expand Down
2 changes: 1 addition & 1 deletion fluent-dom/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @fluent/dom ![](https://github.com/projectfluent/fluent.js/workflows/@fluent/dom/badge.svg)
# @fluent/dom ![](https://github.com/projectfluent/fluent.js/workflows/test/badge.svg)

`@fluent/dom` provides the DOM bindings for [Project Fluent][].

Expand Down
2 changes: 1 addition & 1 deletion fluent-gecko/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# fluent-gecko ![](https://github.com/projectfluent/fluent.js/workflows/@fluent/gecko/badge.svg)
# fluent-gecko ![](https://github.com/projectfluent/fluent.js/workflows/test/badge.svg)

`fluent-gecko` is a Gecko-compatible distribution of [Project Fluent][].

Expand Down
2 changes: 1 addition & 1 deletion fluent-langneg/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @fluent/langneg ![](https://github.com/projectfluent/fluent.js/workflows/@fluent/langneg/badge.svg)
# @fluent/langneg ![](https://github.com/projectfluent/fluent.js/workflows/test/badge.svg)

`@fluent/langneg` provides an API for negotiating languages. It's part of
[Project Fluent][]. Its main function is to provide functionality around the
Expand Down
2 changes: 1 addition & 1 deletion fluent-react/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @fluent/react ![](https://github.com/projectfluent/fluent.js/workflows/@fluent/react/badge.svg)
# @fluent/react ![](https://github.com/projectfluent/fluent.js/workflows/test/badge.svg)

`@fluent/react` provides the React bindings for [Project Fluent][].

Expand Down
2 changes: 1 addition & 1 deletion fluent-sequence/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @fluent/sequence ![](https://github.com/projectfluent/fluent.js/workflows/@fluent/sequence/badge.svg)
# @fluent/sequence ![](https://github.com/projectfluent/fluent.js/workflows/test/badge.svg)

`@fluent/sequence` provides mapping functions from string identifiers to
`FluentBundle` instances taken from synchronous or asynchronous sequences.
Expand Down
2 changes: 1 addition & 1 deletion fluent-syntax/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @fluent/syntax ![](https://github.com/projectfluent/fluent.js/workflows/@fluent/syntax/badge.svg)
# @fluent/syntax ![](https://github.com/projectfluent/fluent.js/workflows/test/badge.svg)

`@fluent/syntax` is a tooling library for parsing, serializing, and working
with the Fluent syntax. It's part of [Project Fluent][].
Expand Down

0 comments on commit e0d2335

Please sign in to comment.