Skip to content

Commit eed0b21

Browse files
Merge pull request #6 from GiselleBarbosa/feature/pipeline-git-actions
feat: add github actions configuration files
2 parents 89af080 + e1059e1 commit eed0b21

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: npm"" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

github/ng-update.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Update Angular Action"
2+
on: # when the action should run. Can also be a CRON or in response to external events. see https://git.io/JeBz1
3+
schedule:
4+
- cron: '30 5 * * 3'
5+
6+
7+
jobs:
8+
ngxUptodate:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Updating ng dependencies # the magic happens here !
12+
uses: fast-facts/ng-update@v1
13+
with:
14+
base-branch: main
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}

github/workflows/build.js.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# 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
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [18.x]
20+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Use Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
cache: 'npm'
29+
cache-dependency-path: package-lock.json
30+
- run: npm ci
31+
32+
- name: Run tests
33+
run: npm run test:ci
34+
35+
- name: Build
36+
run: npm run build
37+

0 commit comments

Comments
 (0)